Added support for richtext input type, codemirror for templates.
Improved templates with support for nesting and outputting properties