Use logger instead of `plog`

This replaces plog. In main() you see an example of how you
could use log-levels and the verbosity-flag from commandline.
return IPs as array of 4 bytes
merged
periodically ask for peers