Ensure relative loader baseUrl is correctly handled

Fixes #108.
Use the correct cwd in the Grunt task

Fixes #110.
Expose chai object using `intern/chai!`

Fixes #107.
Correct loading of functional test URLs generated by `require.toUrl`

Fixes #111.
Merge branch 'master' into geezer

Conflicts:
	chai.js
	lib/realClient.js
	lib/wd.js