Minor cleanup, added authentication and chat join.