Denormalize entity ids in Mongo.

When adding charms or bundles, store their URL parts
in separate fields.
Also implement a simple migration strategy.
I think we should probably have a test that all the migrations are
idempotent and work OK when run concurrently, because that
may well happen when two units are bootstrapped at the same time.