WIP: sketching out some more prefs-related stuff.
Merge branch 'js-ctypes' of github.com:RiverTrail/RiverTrail into js-ctypes