Recruitment of the autophagic machinery to endosomes during infection is mediated by ubiquitin