Fixes #3832. If -rescan on startup, show progress in splashscreen, else show progress dialog.
Needed to implement a temporary notifications queue, otherwise the notifications get queued and block the ui from updating the progress dialog.
Tested linux only qt4 and qt5.

