Història Industrial de Terrassa III. Institucions i societat