Removed restangular and used $resource instead.