Transport of charge-density waves in the presence of disorder: Classical pinning vs quantum localization