New method for testing internet connection

Extremely slightly faster way of testing internet connection.  Uses ping
instead of downloading files.  A SocketException is thrown if no
internet is available, so the catch block is very important.