The Evolution of Biological Carbon and Nitrogen Cycling—a Genomic Perspective