extract resolver functions into a new library
If we pull the DNS resolver code out of lib/net, we can more easily restrict which parts of tor are allowed to use it.
If we pull the DNS resolver code out of lib/net, we can more easily restrict which parts of tor are allowed to use it.