Swapped out resource for restangular
making restangular work.