Define some more tables that will be used and some GUIENH bits
Initial import of button grid handling functions

 -imported from earlier branch, may need revision