Editor Refactoring

Refactoring the editors' code. Introduced a new superclass for them providing a toolbar.
This is a try to make the code somewhat maintainable, but there's just so much done wrong there, it's still a long way.
I didn't invent that enum, I just moved it to public ;)