Add the database to the config file so we can override it for unittests.
Some urls should have been url-encoded, fix this issue in a way that won't break old urls
Added a dependency on "spp", simple preprocessor to do some preprocessing around the templates. This will hopefully allow the changes to be made in one place and propagate to all the right pages.