Replace bam2fq numbers with existing constants and remove global vars from view

sam_view.c: Add per file copyright license (MIT).

bam2fq:
Replace flag constants written as numbers like 0x40 with #defines like BAM_FREAD1.
view:
Removes the global variables and replaces them with a structure containing the settings for a run.