Bug 822801 - Write a script for setting user-prefs

Adds set-pref.sh to set/get preferences in/from user.js and prefs.js