Bug 973445 - [settings] refactor Sound panel with AMD pattern

Note: this refactor just move slider control into `volume.js`
Please split the function to separate ones so that we can write tests more easily.