Added unit testing with Mocha
Moved Mocha to dev dependencies.