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

This patch is still under WIP.
I would suggest to reuse the bound function instead of creating three functions.