Hook up metadata edits to the undo/redo stack.