Undo/Redo—initial implementation

WYMeditor's undo is, in some cases, not accurate.
Shouldn't take too much time, using Sinon spies, I'm thinking. But, surely not in this PR. Should I branch off of master for a PR of testing events?