This support code helps in generating the handshake scripts which are used for testing. R=rsc, ality CC=golang-dev https://golang.org/cl/3680041