A visit to a San Francisco bakery led to the creation of one of the nation's most successful and ubiquitous restaurant chains and helped usher in the era of fast-casual restaurants.