Moving everything related to webkit to main thread jobs

Including creation of windows, webviews etc., still get a crash. The one page epub works fine with the thumbnails though.

Also fixing some calls which cause gtk-critical errors when I try to close the window.