p2p: UDP, peer discovery protocol

Also updated/renamed member properties in Host to reflect future support for multiple listeners and to clarify what current listeners provide.
I mean if this is Hamming distance, the algorithm does not look right. You are counting the MSB position here, not the number of bits set. Should be d &= d - 1;
http://en.wikipedia.org/wiki/Hamming_distance#Algorithm_example