Advanced settings / Configurable editor

Patches allowing for extending editors and full configurability. Implementation of #1.

Patches of #2 are also in this pull request - but that should work out fine (they should simply disappear as soon as those are merged in - main reason is so we can split out eventual discussion).