java style threading and simple chat server