Pass token errors through from oauthlib

Close #1406
WIP on single sign on