[nozzle] cleanup and document nozzle_get_ips (part 1)
Signed-off-by: Fabio M. Di Nitto <fdinitto@redhat.com>