Added support for OAuth. User will pass an array for authentication with either a HAPIKey or an access_token.