Added TemplateGeneratorTemplateWritingHandler. refs #418