Company towns promised jobs, housing, and order, but often gave employers extraordinary control over workers’ daily lives.