Replace ngResource with Restangular.