Fix for token auth calls triggered after login/password calls

Properly reset all the state that affects new requests. 

In a scenario when one Ruby (Rails) instance would first attempt to connect to a store using a login/password and then would try to connect to a different store through OAuth token, second connection would always fail because of the old Authorization header. 

Proposed patch fixes the issue.