Replace node unit with mocha and added test fixtures. Added jshint conformance. Added support for callbacks.