Avoid errors on imports if network broken

Importing StompFailoverUri would fail if local hostname lookup was
broken. This change moves the local hostname lookup to the
StompFailoverUri constructor and replaces the LOCAL_HOST_NAMES constant
with a localHostNames property.