Add scratch code for exporting alignments to SAM/BAM file

Not a direct file copy, query alignments and then write them. Should be easily workable for SAM and BAM files
Move export function to SAMWriter

 ...and move test for it to SAMWriterTest

 IGV-2070