RESTfull model/collection for AngularJS