Added structures for UNDO functionality

Added structures in global to hold action information and history. I
will use this to build the undo function.