add statistics output to merge
picked apart bam_index_core
teach "sam merge" to write an index on the side
nicer version number (from git)