Make some debug prints more useful
Remove an unneeded helper function
Handle HTTP 3xx redirects

Fixes #973.
auto merge of #977 : kmcallister/servo/redirect, r=jdm