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

to replace https://github.com/mozilla-b2g/gaia/pull/19151/files
this._elements = {};