Denormalize entity ids on Mongo.

When adding charms or bundles, store their URL parts
in separate fields.
Also implement a simple migration strategy.