Implemented check for phone on WiFi

Allows for a service restart so the user does not have to do it by
hand, and saves battery when not connected to a WiFi network