Tens of thousands gathered in St. Peter’s Square to witness the first appearance of the new pope.