AngularJS service to handle Rest API Restful Resources properly and easily