ScanNetworks tries using WiFi.firmwareVersion() before .begin(), which hangs since the SimpleLink API isn't initialized.  Added WiFi.init() beforehand.
Merge branch 'master' of https://github.com/energia/Energia