Fixes #66 login page flashes when logged in

This was happening because `authed` was being initialized to false on socket connect. So before the `authenticate` call returned, the login page was rendered.

Fix was to remove the `authed` initialization from socked connect. To speed up showing login for new users, I added a check to see if the cookies are present.