loader patch hooks

Provide hooks to add patches for YUI on both the client and server.

/cc @caridy