Fix Setting a cookie on redirect
And tests
Test and perfection for cookie handling.

I also fixed up some of the RequestsCookieJar methods so using
jar.update(other_jar) works without a problem. This cleans up some of the code
in sessions and the resolve_redirects method.
Merge pull request #1180 from sigmavirus24/master

Fix Session level Cookie Handling