Bug 823783: keep wifi hardware and wifi setting in sync

This moves the code that syncs the wifi.enabled state from wifi.js to connectivity.js because wifi.js only runs once the user visits the wifi panel.