Check editor.autoIndent when inserting a newline

Closes #61
Support selecting inside HTML/XML tags

Closes #59
Closes #60
Support going to enclosing HTML/XML tag