Make the sbt plugin configurations-friendly.

In particular, one can now use the Test
configuration and the `test` task to run tests.