Rewrote the config module and fixed bugs relating to the setup wizard not displaying on first-run