How the composer-lyricist fit 17 songs in the show’s overture—plus writing new songs for Broadway’s ultimate musical revue.