Refactor baseUrl-calculation and do more stuff via QSettings
Convert more stuff to QSettings. Yet untested