decouple prefs model JS code from PHP code
degoober private var in specs
namespace-ish ids
fix pref install issue
Merge pull request #440 from Trott/decouple-prefs

Decouple prefs