Initial support to download a file from an Ajax query. This allows the XSRF token to be sent and verified by the server.