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

This patch is still under WIP.
I was thinking to create another module that is responsible for updating the wifi menu item. I'm just afraid that this file will become another settings.js... Let's create a separate module and require it in `root/panel.js`, how about it?