ServerThread reads incomming messages and prints them.