Cohomology of Affine Artin groups and Applications