refactor the editor and editormanager classes
add a todo
Merge pull request #652 from dart-lang/devoncarew_editor_refactor

refactor the editor and editormanager classes