Added TemplateGeneratorTemplateFactory. refs #418