Use BINARY-DATA for node handshake. Moved handshake protocol code into new package and file.