Ensure token header is reset before authenticating; fixes #483
Merge pull request #484 from jamiehannaford/token-fix

Ensure token header is reset before authenticating; fixes #483