Formalize post-require-hook and change YUI load hook to match new signature.