decouple Editor model from view and switch to more proper MVC architecture; change selection model to selStart/selEnd; various small related changes to keep TextAreaEditor in sync with Editor, etc