Overhaul of Settings

The settings system has been overhauled, made standalone, and more
accessible to plugins.