add timeout option

This allows you to specify a timeout in milliseconds when creating the elastic search client.