Support setting shard timeout

Closes #528

I'm pretty sure the test for this is garbage but I'm not sure how to test this outside of and environment where you have total control over the Elasticsearch cluster like you do in Elasticsearch's integration tests.

Please let me know if there are any formatting issues with this.  I'm used to editing Mediawiki and its style is rather unique and I'm sure its given me bad habit in php.