Idex 981 - Reduce editor coupling

First part of codemirror/orion integration.
Adds interfaces to reduce coupling to the classic editor implementation.