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

Also add EnsureID to ElasticSearch.
Removed the comment