Gauge theories, black holes and big bangs