Undo/Redo—initial implementation

WYMeditor's undo is, in some cases, not accurate.
Two changes here. One is that this code is leaner, using `addBack`. The other is the we remove the selection, again, not cutting the branch we're sitting on.