- Use glib message pump and message loop on main thread.
- Move file import into own import thread.