TemplateManager: Refactored metadata format. We now expect a yaml file.