Switch the editor tree from divs to lists

I think it all works correctly still.
It also avoids some css annoyance with lots of lists.
There are one or two rendering hacks used.
Hopefully it shouldn't make things any harder when implementing D&D.
Collapsing effect lists is now implemented.