Simplified response reader. Fixed redirection bug and added test.