Add a log level to the endpoint to easily control log spam.
The ntor handshake now uses a node id, and the code is cleaner.