Refactored the cookie handling. From now the recived cookies only found in the request, the sent cookies in the response.