Evolving pathways and genomes for the production of natural and novel compounds