The swift gamma-ray burst host galaxy legacy survey. I. Sample selection and redshift distribution.