Improve testing.

Make testing use Nose and WebTest à la [this example](http://bottlepy.org/docs/dev/recipes.html#functional-testing-bottle-applications).