Move to custom settings, split off logging

Split off logging into small and easy to use singleton class.

Settings is now an extended version of QSettings, handling upgrades
to new settings versions automagically