VE-1460: Prepare MWTemplateModel and MWTemplateDialog for extensibility

DO NOT MERGE