Improve settings dialog

This simplifies the management of all the settings quite a bit - at least in my opinion - and should make it easier to add new options in the future.