Add undo-history-summary and undo-record-dump modes