Generic restful API for Ember front end