Use networkmanager to determine if ssh tunnel is required.
Removed old comments