integrate with sbt
remove unnecessary imports
convert the test suite to use TestMore

still has issues (the tests run in parallel, which messes up the test
output, and the outputstream parameter is required), but it's a start