Refactor of the preferences system to include pref & params, with early praparation for supporting multiple prefs saves (default and current, not in yet).
-Added a global configuration manager class
-Added a parameter class to differentiate the prefs and params
-Moves the prefs validation to be in the prefs instead than in the UI
-Added the preview size to the parameters (not currently used)
-Some code cleanup
-Minor Bugfix