added ability to set number of HttpClientBuilder connections

This PR sets the number of connections available to the HttpClientBuilder to the same number of threads allocated to the ExecutorService.