Add support for 301 and 302 redirects.

Redirects have a different delegate method in NSURLProtocolDelegate.
This is required UIWebView redirects.