Added outline haplotype generator.
Added rough outline of the haplotype generation.
Partially working C haplotype generator.
Tightened up memory allocation code.
Added extra haplotype generation debugging.
Changed the tree_file_next protocol to simlify.
Tidied up the edge cases for hapgen.
Replaced the haplotype generation code with C.