An AngularJS service that processes a http request returning Json