Save user to cookie and load notes from user.api_key
Make login/logout flow better