Detect input format and add samtools view -C option

Just use hts_open("r") to auto-detect the input file format.
Add -C option to specifiy CRAM output.
Add "make install" target