Changed debug settings handling.

Tidied up init on app startup, and settings are now applied immediately
on settings window exit, instead of requiring an app restart.
Fixed a crash bug during load order confirmation.
Userlist is now only written to during sorting if something was changed.