The primordial metabolism: the origin and evolution of metabolic pathways