Started work on genetics.

Added some framework for genetics. It is still very rough and needs lots
of work.
More housekeeping things.