Finishing server and client

Still need to figure out why "Chat" is undefined on client.