Avoid reusing tokens in long time transactions

This should help with large files support when the token TTL
set by the auth server is too short.

Fixes issue #32