Add X $.ready to lib. Establish X callbacks before XInit.