When adding charms or bundles to mongo, index in ES if configured. Also, add EnsureID to ElasticSearch.
Merge pull request #134 from bac/update-es-on-doc-change

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

Also add EnsureID to ElasticSearch.