Add undo/redo implemenation for rename operation.