Implement chat relay

Also clean up logging somewhat and fix some comments