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

This patch is still under WIP.
Or move to a separate module in `/js/panels/wifi_join_hidden` so that you can add tests on it.