Fix empty uris
Prefs sorting, real error messages, ui fixups
Threading