Removed TemplateManager, moved tmpl into mw.util class