Tests: Replace resource loader with AMD

:boom: WIP...

Pulll request's goal is to AMDify tests for 1.12.0 release and address part of http://bugs.jqueryui.com/ticket/10119.


Basically, the above is how each tests will change. We may be able to wrap the require.config into a helper and avoid this boilerplate code.