Added logging to server, server-side implementation of messages to client