Mongolab $resource adapter for angular.js