More tests, more fixes, new sbt plugin.