added ChunkServerThread and ClientServerThread classes