Remove obsolete hasChildren and getEditorState

<code>hasChildren</code> is no longer used by any part of the code and the only thing that is used from <code>getEditorState</code> is cursor position that can be easily taken from code mirror instance itself. Less code, less troubles!