Adds Cookie#to_hash method and removes EOL whitespaces.