Fixed a few bugs in the drawing code, so that the lightmap now works in the editor. Also added a bunch of buttons to toggle different layers. Palette can now drag&drop to each of those layers.
Standard delete and duplicate buttons are available as now, also added raise and lower buttons. Another new addition is the ability to parent objects to each other, which allows the building of more complex objects out of simpler ones.