Don't set unnecessary cookies
Fix crash on Safari Private Mode, or when localStorage is turned off
Fix type error preventing cookies from working at all
Merge pull request #8 from zaption/cookies

Make cookies actually work (and fix various issues with them)