Adding handshake encode/decode as exports to peermsg.