Convert phase to htslib API

Convert samtools phase command to use new htslib API.
Remove bam1_dup from bam.h to make room for htslib bam1_dup.

Signed-off-by: Martin O. Pollard <mp15@sanger.ac.uk>