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

This patch is still under WIP.
It seems more readable using:
```
elements = {
  panel: panel,
  wifi: wifi,
  wpsColumn: panel.querySelector('#wps-column'),
  ...
}
```