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

This patch is still under WIP.
Why `connect` is called with `self`? Could it be called directly?