Improve the ElasticSearch cluster configuration to allow basic_auth ES access

It was to test it but I suppose I can mock the Elasticsearch constructor?