Improve async dialog handling
Arguments to async dialogs not tied to notification system
Add preference to disable notification system
Make DatabaseErrorDialog async