Undo/Redo—initial implementation

WYMeditor's undo is, in some cases, not accurate.
But this event triggering isn't covered by tests. Perhaps we'll make a round of event trigger tests in a different merge.