Custom template flag

Closes #212
Disabled changing of template on prepared and started elements in editor, since this wouldn't have any effect, and this may be more intuitive especially for prepared elements.