Twitter cares more about its societal role—with its revenue model still a work in progress, it is about to move into new headquarters in the vast Art Deco Mart building, in one of the shabbiest sections of San Francisco’s Market Street skid row, with the quixotic hope of revitalizing the neighborhood.