Created a generic controller to improve implementation of REST controllers.