Add the packet handler class and modify the server to support clients.