check for existing PID file
remove old comment
use global domain suffix
refactor bootstrapping code into peerfile and lpd (local peer discovery)
use different sockets for sending and receiving for local peer discovery; MacOSX does not seem to allow the use of one socket for both
expose net_set_nonblocking()
minor cleanup