Tested first revision of persistent support undo/redo. Corrected issues
and implented second revision which seems to work properly as to the
design.

Signed-off-by: Jakob Brandsborg Ehmsen <jakobehmsen.github@gmail.com>