Write SA tag
Factor generation of SA tag out of SAM formatting

The SA tag now is formatted as the alignment is converted from the bwa
structure to a rapi_alignment.
Add rapi option for number of threads