introducing the CookieJar class and #before_request method