Refactoring the service angular layer and simplifying the way we retrieve data, using $resource instead of $http.