Add a read timeout to HTTP calls to avoid thread death.

We had an issue where threads were dying while waiting forever on the body of HTTP request to the API. This adds a 1000ms timeout on reading data and decreases the connection timeout to 5000ms.