New method connectToNetwork

Removing the dns bootstrapping call from singleListener.run means when the dontconnect config option is unset dns bootstrapping won't be attempted. shared.connectToNetwork corrects this and should be used in place of simply unsetting dontconnect.