Bug 998847 - [Settings] refactor storage.js with AMD pattern

to replace https://github.com/mozilla-b2g/gaia/pull/19151/files
id is been used to identify the change event and trigger the dialog