Cleanup profile when restarting B2G on devices. Fixes issue #543
Improve device wifi detection and fix test that requires no connection