Fix filename dialogs to return filename instead of current folder.
Get populating the treeview working correctly.
Updating of controls are invoked to the main thread.