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

This patch is still under WIP.
nit: Please place the public function in the bottom of the object to make the exposed functions clearer.