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

This patch is still under WIP.
If this is a general function for settings app, it seem we should not have `options.network` here.