Connect fixes

Various enhancements and fixes for the connect server in OJ, see commits.