Integrated local undo/redo transaction with implementation of local
undo/redo.

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