Use QLockFile for single-instance configuration locking
Remove useless legacy UI code
Remove more unused code