Bug 1055897 - [settings] add settings panel support

The fail safe check has flaws. Consider `options._type` equals "reset" and only `found.onSubmit` is a valid function, it calls to a null.