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

This patch is still under WIP.
based on our offline discussions, let's move this to wifiUtils.