Refactor repetitive code into base class

The controller code for the base data objects was getting very
repetitive.  Refactored it into a generic base class that will do the
heavy lifting so the specific controllers either just need to make the
type concrete, or need to extend based on non-base needs.
Test the create get routine
Include tests for the create POST handler.