Support http response status code 306 (redirect) from AWS

AWS frequently returns status code 306 with a redirect host. This patch adds code that handles responses with status code 306 by wrapping the service without changing the external APIs.