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

This patch is still under WIP.
Note that `onInit` is called only once so we should not store `network` in it. We should always use the values in `options` passed to `onBeforeShow` if the values vary from each call.