migratebundle: new package

This is the start of the code to migrate old-style
bundles to new-style bundles.
Here as well, legacyStruct.