initial minimal fixes on p2p/dht code. please @hoffmabc i hope you have the patience to read this at some point, still a review in progress, but I think I understand good part of it now https://gist.github.com/gubatron/be0a21a7d5b80825799b