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

This patch is still under WIP.
As `SettingsUtils.openDialog` should not pass a `network` object to `onSubmit`, I would suggest to bind it to the function.