Make generated controllers RESTful, update to version 2.0