Settings.js: factored out storeSettings()
Settings.js: factored out storeSettings()

Grouped copied & pasted code into a single function.

ether/etherpad-lite,joequant/etherpad-lite,joequant/etherpad-lite,storytouch/etherpad-lite,joequant/etherpad-lite,storytouch/etherpad-lite,aptivate/etherpad-lite,aptivate/etherpad-lite,aptivate/etherpad-lite,ether/etherpad-lite,ether/etherpad-lite,storytouch/etherpad-lite,joequant/etherpad-lite,aptivate/etherpad-lite