Raise timeout error after it's polled too many times.

The 'clock' is a count of the number of times polled. Time out
according to a maximum on that counter.
Merge pull request #4 from edx/benp/splunk-api-while-fix

Set a timeout for splunk api requests.