Added TemplateTemplateFactory. refs #418