Switch to scalatest

Using JUnit was sometimes awkward because there are no Scala-ish matchers.
Scalatest is mature enough now to use it here.
Purge the queue when scaling down apps. Fixes #254

Also improve logging.
Add a test for scale down