(#18255) - Follow http redirections

This patch adds support for HTTP redirection in the Puppet HTTP
client.

The http client includes a redirection limit, and recreate the
redirected connection with the same certificates and store as the
original (as long as the redirect new location is ssl protected).
It doesn't follow redirection for POST requests though.

Signed-off-by: Brice Figureau <brice-puppet@daysofwonder.com>