Angular.js services for Phonegap with promises