migratebundle: new package

This is the start of the code to migrate old-style
bundles to new-style bundles.
done, slightly differently.