Refactored the request handlers so they can use a common base for rendering responses...ready for sam to pull and try deploying to appengine