When adding charms or bundles to mongo, index in ES if configured.

Also add EnsureID to ElasticSearch.
Nice reorganization, thank you.
Is it required for GetID to be exported?
Can it be just a function (like func escapeEntityId(entity *mongodoc.Entity) string)?