Remove unused constants from UserPref
Make UserPref.js follow wirecloud's code style