Added initial OAuth 2.0 implementation on API.