Adding ScalaStyle plugin and fixing some broken tests with nasty fixes.