:bug: fixed token authentication
allow user to provide auth.type='token' and correctly encode the token for authroization header
Merge pull request #174 from groupsky/support_token_authentication

fixed token authentication