Big rename of "tests" to "apps"; fix bug when persistent state missing; clear more dirs when building Play