Added member functions to undo::UndoHistory and app::DocumentUndo to iterate all states of the undo history. Also we’ve added app::DocumentUndoObserver to see when new states are added in the undo history.