Move instantiate() loaderhook callback.

The instantiate() callback should come before parsing.
The callback is not correct yet, but it now occurs in the right order.
Add event handler onComplete() to loader hook API to support obtaining transcoded output.
The onComplete() event now triggers InterceptingLoaderHooks.