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

This patch is still under WIP.
I believe we need a `cancel` function in this module, what do you think?