Merge pull request #22 from subwindow/add_cookie

Add support for connecting with a session cookie