Fixes tests to use the loopback address whenever possible. It also fixes some safe publishing issues, or add diagnostics in some of the tests. Reviewed-by: michaelm
Removes (or documents) some usages of the wildcard address in intermittently failing tests. Reviewed-by: alanb
Reviewed-by: darcy, ihse