Push some of the JS docInfo down into C; crucially, this lets us use the GIO async API. https://bugzilla.gnome.org/show_bug.cgi?id=603522