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

Also add EnsureID to ElasticSearch.
Perhaps we should log the fact? I am also not sure about whether or not to return an error to the users.