migratebundle: new package

This is the start of the code to migrate old-style
bundles to new-style bundles.
Based on a comment before the struct, what about renaming this from oldBundle to legacyBundle?