Add an onReady function for analyses.

For analyzing node.js code, onReady can be used to
delay execution of the program to be analyzed until
some asynchronous initialization has been performed.