Undo/Redo—initial implementation

WYMeditor's undo is, in some cases, not accurate.
This entry is to be changed with the next undo/redo related merges.