Theory of Early Molecular Evolution