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.
I know this isn't a change that's been made in this PR, but "Ensure" is often used to mean "make it so if it isn't already". I'd be inclined to rename this to IdExists or something like that.