Lie groupoids, sheaves and cohomology