Topology, Geometry and Gauge fields: Foundations