Fixed detecting the parent window.

The algorithm for detecting the parent window for modal dialogs has been improved.
Implemented showing exception on the task dialog builder.
Allow task dialog texts to be formatted.
Implemented MRU combo box and file browser.
Show exceptions from jobs.