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

Add -1 and -2 options to output FASTQ to files instead of STDOUT.
Separate out bam1_t to fastq processing step and make it self contained.

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