Implement http://dvcs.w3.org/hg/undomanager/raw-file/tip/undomanager.html
UndoManager has been removed from trunk in bug 100711.