lol...I just read this entire thread waiting to get to the end to tell you it was the catalytic converter but you already figured it out. Had the exact same problem on a non-Ford vehicle when I was a student. Drove fine until you wanted to go up a hill. Eventually quite running all together. Replace the converter and added another year on the car before selling it.
Congrats on getting it fixed!
Congrats on getting it fixed!