Add HtppClientOptions to TestRestTemplate

Allow customization of the Apache HTTP Client used in TestRestTemplate
via an options enum.

Fixes gh-1497
Merge branch '1.1.x'