Allow author to create template in interactive json

Authors can now use a string (e.g. "split-right") referring
to one of the pre-defined templates in templates.js, or
they can directly create the template in the json.

[#43484567]