TREFF: Implement cookies
TREFF: Allow https in cURL
TREFF: Delete the cookie on logout