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.

deleted the comment. it doesn't really make sense in this package anyway (more stealing from juju-core)