undo/redo for node deletion/insertion as well as contour changes.