add hooks to patch both the pre/post initialized instance
fix tiny infinite loop bug
move patch hook to loader instantiation time

This hook needs to happen earlier if we want to capture all the work
that loader does during instantiation.
remove yui instance hook as it's not currently useful
expect a single patch instead of an array of patches
#1300 - images should not be used to draw triangles. we have css
[dom] Optimize dom-style.js

* Remove unnecessary anonymous function, unused variables.
* Use "Number()" instead of "new Number()".
[dom] Optimize dom-style-ie.js

* Remove unnecessary anonymous function, unused variables.
* Use "===" instead of "==".
Fixing positioning of mask for stacking modals.
Merge branch 'master' of https://github.com/moiraine/yui3 into dev-master
Build widget-modality.
Merge branch 'dev-master' into dev-3.x
Update widget-modality history.
Merge branch 'dev-master' into dev-3.x
Merge branch 'optimize-dom-style' into dev-master
[dom] Build
Merge branch 'dev-master' into dev-3.x
use a better name for the hook and pass the config
unit test for loader hook
invoke doBeforeLoader after setting `this.context`