Production pipeline template additions and improvements

add a "stage2" bwa mem pipeline (i.e. PhiX only alignments in incoming BAM expected)
num_thread as a parameter to all pipelines (used with main alignment tool)