TemplateFile: Implement class

Also provide first unit test.