Updated ring.js to version 2 and switched to mocha for tests.