Split out bam1_t to fastq processing and add option to output to files.

Separate out bam1_t to fastq processing step and make it self contained.

Signed-off-by: Martin O. Pollard <mp15@sanger.ac.uk>