update and refactor pipedream.util.get_ip

make the execution path cleaner, and add extra kwarg to skip using ioctl
performance improvement to pd.util.has_internet

Set url to google's IP, not google.com to avoid DNS lookup, and set
timeout parameter in urlopen