Unit tests

Implemented some webtests to test existing handlers. Now we can write our tests while we are developing new functionality.

Closes #14