The chat server now runs via a separate thread.