Braid groups and Euclidean Lie algebras in statistical mechanics of spin systems