Added email/password authentication. For #26.
When connecting to a room, if the cookies are already set, don't try to login again.