Cohomology in the service of AQFT