Convenience controller class for HTML/Json controllers

This class holds methods that make controllers serving both Json and
HTML simpler.