Log support work

Support for parsing the header blocks of InnoDB log files and other fixes and cleanups.