custom oauth flow
Working with Angular 1.2.3
More clean up