This patch moves the security slider code from torbutton.js to its own file (security-prefs.js) and refactors it.