Add function for exporting alignments from memory

IGV-2070