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 is kind of strange to query just ID here, only to query again inside of put for the entire document? I see that it is an optimization to prevent pulling the entire database when deprecated series are being ignored. Can we add a comment explaining this?