Refactor the TCPServer and Fileserver code