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

This patch is still under WIP.
Is the following lines of code to be moved to the wps module?