Refactor RedirectAgent redirect reponse code handling, refs #5434.

git-svn-id: svn://svn.twistedmatrix.com/svn/Twisted/branches/browser-like-redirect-agent-5434@37856 bbbe8e31-12d6-0310-92fd-ac37d47ddeeb