Lots of refactoring and GDB compatibility shims. Almost ready to hook in actual heap analysis.