Adding oauth2 to the api libs

Also added GA OAuth2 support