Add an initial implementation of a generic tree edit mechanism.

So far this allows the adding of child to composite nodes.
Support html format in TextRenderer.

Not really tested so far.