Changed from ng-resource to Restangular