Added OAuth2 authentication.
Added more API test cases for users app.