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.
It would be worth documenting the possible error returns here and for the functions below, I think.

    // It returns ErrConflict if there is already a document with the
    // given id.