Better support for Editor text manipulation

* insertText
* selectLine
* getTextAtLine
* getSelectedText
* etc.