Update Front-end to handle chat

Implements the chat as a polymer element and fixed the login procedure
now using both userid and username.

The chat is initiated first after logging in.