AngularJS Restful Resource Wrapper