Added redirect support.

If the user uses a status code of 3xx and has a valid "Location" header, we perform a redirect.