Like a bomb went off under the hood...

If you find corrosion like that on your cap and thermostat, i would flush the entire system first and then troubleshoot from there after the system is filled with 50/50 antifreeze and distilled water.
Drilling a 1/8'' hole in the thermostat will help with bleeding the air out of the system as well...........