Some utilities for making undo/redo easier.  These should probably go into apptools eventually.