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. (this depends on PR htslib#80)
Signed-off-by: Martin O. Pollard <mp15@sanger.ac.uk>