Post SPR-8804 minor code tweaks

Post SPR-8804 minor code tweaks in HTTP request factories based on Apache HttpClient and Apache HttpAsyncClient. Most of the changes are related to the use of new HttpClient 4.3 configuration APIs.

Issue SPR-10869