added support for using an access token
Merge branch 'add-oauth-support'