Use mozTCPSocket to detect online/offline status (bug 1014508)