Web app using AngularJS to connect to Drupal with a version running in PhoneGap