Mocha tests and global leak

I added a mocha-based test suite so you can run `npm test`. Both the async and sync tests are implemented.

Also in bCrypt.js there were a few var statement errors that I cleaned up