Minor cleanup

add tests :)
Tests!

Adding tests and some mechanics to make them work.

Even fixed a bug.

We've got 7 now :)
More tests!

And fixed a bug with unicode
Merge branch 'docs-and-tests' into backend
Reorg the code! (and tests)

Now you can test easily and stuff. Also fewer files.
Merge branch 'docs-and-tests' into backend
Merge branch 'backend'