Distribution function approach to redshift space distortions. Part V: perturbation theory applied to dark matter halos