clean up ECDH API, tester client/server