Support reading multi-region BDSUP and multi-graphic BDN+XML.  Also, lots of refactoring and cleanups.