Refactored the settings management. There is now a settings.php in the main plugin directory. Uses setting sections and setting fields.