Fix undo/redo in table insertion and editing.
Enable undo/redo for toolbar paste.
prepareDocForEditing adds a `br` to empty documents.
Check for corrupt nodes on `normalizeHtml`.
New and improved undo/redo tests.