Topological Field Theories from and for 4d SUSY Gauge Theories