Holds a stack of command objects to implement undo and redo.