Wilson loops, confinement, and phase transitions in large N gauge theories from supergravity