Automatically initialise elasticsearch.

Charmstore will now automatically initialise elasticsearch when starting up.
This ensures that elasticsearch will always have the correct index and mapping
configuration required for correct operation.
FWIW it's conventional to make errors returned as pointer types, so that it's obvious what to check for. So it would conventially be *ElasticSearchError.