Rework network selection

public_network_name config variable is only used to specify which IP to
use for SSH

networks is the full list to use, and contains only public_network_name
by default if not specified