Fixup tests

Use local copies of dependancies so IE works and update to the latest
version of mocha so loads of stuff works better.