Refactored SysinfoModel and PreferencesModel. Also made those classes thread-safe!