San Francisco has been reinventing itself through booms and busts. It is a city where the past