move some generic address handlers to common util
clean up sockaddr initialisers
fix util require