Nodes in the xml tree can now be collapsed.

This part was a lot easier than other stuff as it was pure HAXE code.