Idex 981 - Reduce editor coupling

First part of codemirror/orion integration.
Adds interfaces to reduce coupling to the classic editor implementation.
Why we need two very similar classes CursorModelWithListener.java and HasCursorModelWithHandler?
Not cleare for us. Except that we are ready to merge pull request after release thag we plan on 31/07/2014.