Boundary Groupoids