Properly handle redirects
Handle cookies and cancel original redirect on redirects
Merge pull request #82 from luisobo/luisobo-redirect-handling

Redirect handling