(PE-5640) Add proxy redirect support

This PR adds tests for proxy redirect functionality, and also ensures that proxied redirects will be followed by default on POST and PUT requests.