The parish in medieval and early modern Ireland : community, territory and building