Undo/Redo—initial implementation

WYMeditor's undo is, in some cases, not accurate.
Due to changes in `.selectedContainer` I would check this again.

And use `.deselect()` instead.