Ergodic equivalence relations, cohomology, and von Neumann algebras