Split JS and PHP tests into separate Ant targets

Also provide a "test" target that runs all tests, for convenience when
running ant at the commend line. The TeamCity build will call both
steps separately, though.