App loop, etc, and sending messages from client to server.