Updated add_cookie method to use new http_cookie API, following Mechanize changes (see http://bit.ly/12Do1l7)