TOPOLOGY, GAUGE FIELDS AND THE STATISTICAL MECHANICS OF A MELT OF POLYMER RINGS