Finish up async hostname resolving
move some stuff around in hostname_lookup();