Update mocha to 1.18.2, mostly to get new Promises support added in 1.18.0.
Fix up the Mocha tests to use the new return-a-Promise feature. The xpcshell glue changes are currently untested.