Moderately more 1.8 compatible

Also attempt to use CGI::Cookie although it's not looking promising.

And made my own CookieJar similar to Net::HTTPHeader but not the same. And it
seems to work. I just need sane cookies to test it with.

Also a very rudimentary version of resolve_redirects.