Bug 1082993 - [settings] refactor Developer panel with AMD pattern

Suggest to use an exposed variable `enabled` like what we did in `panels/root` to observe this `onBeforeShow` and unobserve this `onBeforeHide`. And remember to update the UI every time when `onBeforeShow` is called .