Updating Mocha, plus resolving IE 9 & 10 issues.

This incorporates, and replaces #366.

This bunch of commits include

* updates to both the main and test libraries - resolving some Internet Explorer issues.
* adding Modernizr, plus a test for cors support, loading a polyfill if needed (needed for IE 9).
* resolving a couple of css issues with IE (height of newer/older flags, and removing borders around images in links).
* batch files for building client and testclient
* change report tests to use JSON.stringify rather than date.tostring to resolve issue with IE using a different date format.