Enable to inject a RequestFactory in a RestTemplate

This PR implements the solution discussed in issue #651.