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

This patch is still under WIP.
Ah that's because before refactoring, we have to reference something inside the function with `this`. But I think we don't need it anymore, thanks for the catch hah.