Fixed log out bug and added download complete message dialog.
Merge remote-tracking branch 'origin/dev' into dev