Implemented undo/redo using the new branch implementation of wrapping in
plot tool.

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