A better way to do Angular stateful models using a RESTful API.