Fix index creation and uploading
Fix index creation and uploading

The index name wasn't being passed to elasticsearch when creating or
uploading data, so it wasn't possible to restore an index.
(Elasticsearch would produce an error complaining about an invalid POST
to '/')

patientslikeme/es_dump_restore,rboulton/es_dump_restore