Implemented feature req #174 (Dump/Restore state)

Implemented functionality to save intermediate state of genetic
algorithm, so that we can restart from the same point we left off - by
dumping full genetic population after each generation. Useful in the
event of lost db connection or computer crashing.