Oauth2 authentication module for AngularJs