refactored code to allow seperate templates for output types by creating HandleOutputType.<otname>.tmpl

refs #1106