AngularJs Module for oAuth within a phone gap application