Rewrote existing test suite in mocha.

All tests pass, run with memory, redis and mongodb backends.
Updated readme and package.json.