Angular.js $http wrapper for RESTful applications