Cleaning up codebase and switching to Mocha test runner.