Group cohomology, modular theory and space-time symmetries