Follow redirect headers

This is for the testing framework.

This adds a follow_redirect variant that lets you pass headers (cookies, for instance) in the get request that happens when you follow a redirect.