migratebundle: relation inference

The testing is a little on the light side, but has been manually verified against all known bundles
that we need to migrate.

I started off thinking that we needed yaml.v2 for this conversion
but actually we don't and I'd prefer it if everything changed to use v2 at the same time,
so using v1 here.