Singular spaces, groupoids and metrics of positive scalar curvature