Incorporate libevent, and replace addrserver with async DNS.