replace restangular with ngResouces