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.

TODO:
- [ ] Fix dialog [element is undefined](https://github.com/jquery/jquery-ui/pull/1335/files#diff-1b4b30b16776f6b3f0a4f05ddfbeb518R556).
![screenshot from 2014-11-21 13 41 09](https://cloud.githubusercontent.com/assets/967155/5144757/235785d8-7184-11e4-8239-b7ce9c467a34.png)
- [ ] Fix position [fractions](https://github.com/jquery/jquery-ui/pull/1335/files#diff-7234b000d1930f2cb8baca79f28f6659R710)
![screenshot from 2014-11-21 13 39 20](https://cloud.githubusercontent.com/assets/967155/5144732/ec57cf5c-7183-11e4-836f-faac0bd36e9b.png)
- [ ] Fix QUnit's expect() failures.
![screenshot from 2014-11-21 13 42 20](https://cloud.githubusercontent.com/assets/967155/5144768/4a53fd60-7184-11e4-87b5-fca95b9c5c6b.png)
- [ ] Swarminject.
- [ ] [smash `test/unit/helper/` files](https://github.com/jquery/jquery-ui/pull/1335#issuecomment-63818170).
That would load this when we don't need it. Just swap this with the line below.