OAuth 2 support.
Merge pull request #2 from stevelacey/oauth2

OAuth 2 support.