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

Also add EnsureID to ElasticSearch.
Since we define a pointer in AddBundle, we could add the same here too (entity = &mongodoc.Entity). [shrug]