Use cookiejar to store cookies

I had some issues with reusing a connection for multiple calls and how xmlrpc stores cookies. Mainly, the issue is with logging in. Currently, if you have received any cookies before, and then login, you don't actually stay logged in because cookies are never added to the ones already there. Using a cookiejar is an easy way to solve this issue.