Add a few unittests

I started to add tests to the repository.

The tests use [Mocha](http://visionmedia.github.com/mocha/) and [expect](https://github.com/LearnBoost/expect.js).
A few tests fail for Stanza, it needs a separate discussion.

More tests to come.