Added handling of request timeouts

We are very close to using this wrapper in our application. However, we noticed that it was hanging sometimes on calls to Zencoder. Because of this we have added timeouts to the httpClient and then handling for when exceptions are thrown. Each call to Zencoder will happen MAX_CONNECTION_ATTEMPTS before failing. Basic real world testing shows that this is helping.