When large parts of San Francisco went dark during a mass power outage, the city got an unscripted stress test of its ...