Support for async file chooser 50% done, missing comments, bugfixes and some rewrites are needed