Massive work on units, introduce specs2 for unit tests.