Torsors and Topology in Diophantine Equations