Added support for undo/redo for cons tool forward/unforward to canvases.

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