Style
More concise and testable Preferences
Fix GPL notices
Beginnings of Preferences UTs