formatting json responses. moving standard crud methods into crudcontroller. fixing template issues