I don't have much to add... pedialyte is good. Gatorade (50/50) is good.
Stretch well 15-20 minutes prior to class too (sometimes dojo warmups are not very vigorous). And ditch the heavy gi. I actually have regular gis and summer gis for the Southern heat...