Minor fixes

1) Fix WiFi vs. Cellular detection
2) Report connectionChange when switching networks.
Merge pull request #9 from markjulmar/master

Minor fixes