fix treatment of localStorage, make io.socket work on insecure connections
Merge pull request #83 from ccd0/bug-fixes

fix treatment of localStorage, make io.socket work on insecure connections