Added NewTemplate method to template.go to ease up the creation of templates in controllers