Start basic tests
Refactor psgi app, use sha1-hex