fog/fog — pull request #2998 by gogolok (2014-06-16 11:56:26+00:00)
Title: [hp] reauthenticate

The current hp (storage) provider doesn't support token expiration.

We have a token expiration time of around ~50 minutes when using our Swift service.
Afterwards the fog gem will throw an exception.

http://docs.openstack.org/api/quick-start/content/
```
2. Send API requests and include the token in the X-Auth-Token header. Continue to send API requests with that token until the job completes or a 401 Unauthorized error occurs.
3. If the 401 Unauthorized error occurs, request another token.
```

This PR fixes the hp (storage) provider.

When creating the request it's important the original `params` won't be modified so that the `retry` will work.