An AngularJS service for handling RESTful communication with HAL