How America’s oldest magazines are modernizing (and monetizing) their archives