The heart of the community has often been the village pub, sometimes acting as shop, meeting-room and even court.