A small AngularJS Service to query an endpoint in a stateful way.