Denormalize entity ids in Mongo.

When adding charms or bundles, store their URL parts
in separate fields.
Also implement a simple migration strategy.
Now these are in the mongodoc can we remove the special esDoc that does the same thing for elasticsearch?