Updated header routines to be faster

Where possible, the routines that interrogate the header for information
now set a global with that information the first time they are run, and
thereafter check the global rather than pull the information from the
z-machine memory. This will hopefully speed things up a little.