Fixes redirect issues.
httparty sends request body at 302 redirects, so we
disable redirect follows for our fileoperations.redirect
call.
minor changes in client as well:
1. drops the token from the body, and sends it in header instead
as per the new api
2. support additional options
As until now the client implementation replaced single underscores with a dot
this was not compatible with underscores in the API URIs.
For this reason now double underscores in the method name are replaced with a
dot instead.