Fixup tests

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