Set up auto-detection of gens.per.tree on loadin

Edited load.trees so that it will look in the tree file and
automatically detect the number of generations represented by each
tree.  This works by regexing the tree names loaded from the tree file.