Fixed #13. Added license. Used the same license as the drupalgap drupal module.