Cordova/PhoneGap services for AngularJS