Profinite groupoids