Respect caret position when changing states
Redo/Undo controls
Merge branch 'master' of https://github.com/mikeroll/writr.git