Scientists chart the stories of young stars — from being born to moving out