Handle the NAT router case

Add the capability to determine the WAN IP address of the NAT router behind which localhost sits, if any.
Find bash interpreter in PATH, not hard-coded

Using /usr/bin/env
Merge pull request #2 from PhilHudson/master

Handle the NAT router case