IE11 support

This is the dijit portion of the IE11 fixes. In addition to backporting the changes we made for IE11 support in 1.8, I also backported several 1.7->1.8 commits to reduce merge errors.