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 did check that the coverage of this test covers the code path I expected to test, But I'm happy to ramp it up If you think that's necessary.