Arakelov ray class groups, the Cohen--Lenstra heuristics, Higher genus theory and Higher Redei reciprocity