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 think this might be better to just return an error, but say that if the document already exists, it returns ErrAlreadyExists.

Then the sense of the return value is more obvious and the code using it should look more obvious too.