A few fixups in peer handshaking, plus mo betta debugging support.