Declarative RESTful JSON service controllers to use with AngularJS, Ember, etc. with less code