clean up CodeMirrorAdapter
fix composition of changes in EditorClient (closes #19)