Bug 973466 - [settings] refactor wifi panel with AMD pattern

This patch is still under WIP.
Moving `newListItem` to `wifi_helper.js` does not make sense to me as only settings app uses it. Could we create a separate module for it and place the module in `panels/wifi/`?