Add logging.
Client & server now exchange only JSON.