The Scope and Organization of Production: Firm Dynamics over the Learning Curve