Updates mocha.
Fixes mocha deprecation warning.
Refactors Rakefile for tests such that no environment is loaded.
Merge pull request #745 from wilkie/bugfix/faster-tests-through-rakefile

Bugfix/faster tests through rakefile