Fixed listening to wifi state change via BroadcastReceiver; merged the WifiBroadcastReceiver into the WidgetProvider class