ApiQueryBase subclasses take an ApiQuery, not an ApiMain

Not that ForeignApiQueryAllPages isn't a gigantic hack anyway.

Bug: 65407
Change-Id: I361fc22cb94e70c2c4694128d96b9991fa21e699