Refactor preferences defaults, prepare for enabling preferences sync
defaults.js
Merge pull request #250 from akhodakivskiy/prefs-refactor

Refactor preferences