Make library loading and JSONP import async.

Much, much nicer now! Loading is somewhat fragile, but is a limitation
of JSONP that can't be gotten around.