More factoring out. Get page controller base class working and rendering a template.