Active Nuclei and Star-forming Objects at z > 2: Metallicities, Winds, and Formation Histories