Support setting tails with EditorState. Add tests for EditorState.
Better mark implementation.

We no longer need to redefine every motion command -- moving the cursor while
the mark is set extends the selection, and any text update deactivates it.
core:cancel also deactivates all marks.
Merge pull request #10 from oggy/marks

Better mark implementation