Fixed bug on "OK" in directives editor.
Added ability to remove elements from template.
Operator for adding new node