Undo/Redo—initial implementation

WYMeditor's undo is, in some cases, not accurate.
@kylegibson you asked about this. Here's a code comment. Is it clear now?