Cohomological aspects of two-graphs