Restructure the package provider to use the candidate_version accessor vs the variable directly.
Restructure the package provider to use the candidate_version accessor vs the variable directly.

This allows us to delay loading the candidate_version until it's actually needed.

For example, it's not needed if we didn't specify a version, we're doing an install, and we already have a version installed.

If we do this, then we can possibly speed up the other providers because they don't have to look up a candidate version, only
an actual installed version. Some can do this via disk instead of via the package maintainers, and this makes it go faster.

nicklv/chef,joemiller/chef,cachamber/chef,danielsdeleo/seth,tbriggs-curse/chef,jblaine/chef,ekometti/chef,nguyen-tien-mulodo/chef,karthikrev/chef,strangelittlemonkey/chef,raphael/chef,patcon/chef,sideci-sample/sideci-sample-chef,hfichter/chef,hfichter/chef,ktpan/chef-play,cachamber/chef,raphael/chef,sekrett/chef,evan2645/chef,sempervictus/chef,renanvicente/chef,adamleff/chef,tbriggs-curse/chef,ranjib/chef,jimmymccrory/chef,zuazo-forks/chef,jordane/chef,permyakovsv/chef,MsysTechnologiesllc/chef,ShadySQL/chef-merged,jaymzh/chef,polamjag/chef,juliandunn/chef,martinb3/chef,permyakovsv/chef,ranjib/chef,smurawski/chef,strangelittlemonkey/chef,gene1wood/chef,higanworks/chef,circleback/chef,nvwls/chef,renanvicente/chef,ShadySQL/chef-merged,Ppjet6/chef,ShadySQL/chef-merged,swalberg/chef,karthikrev/chef,andrewpsp/chef,smurawski/chef,jmhardison/chef,MichaelPereira/chef,sideci-sample/sideci-sample-chef,mio-g/chef,gsaslis/chef,jhulten/chef,Tensibai/chef,MichaelPereira/chef,sysbot/chef,ccsplit/chef,pburkholder/chef,ekometti/chef,jkerry/chef,ekometti/chef,BackSlasher/chef,robmul/chef,EasonYi/chef,legal90/chef,malisettirammurthy/chef,josb/chef,sysbot/chef,brettcave/chef,jonlives/chef,ranjib/chef,mikedodge04/chef,natewalck/chef,andrewpsp/chef,ducthanh/chef,danielsdeleo/seth,jagdeesh109/chef,AndyBoucher/Chef-Testing,nvwls/chef,davestarling/chef,jonlives/chef,erkolson/chef,custora/chef,baberthal/chef,swalberg/chef,SUSE-Cloud/chef,brettcave/chef,ckaushik/chef,nicklv/chef,tbriggs-curse/chef,skmichaelson/chef,ckaushik/chef,martinb3/chef,Igorshp/chef,jblaine/chef,jk47/chef,baberthal/chef,jordane/chef,b002368/chef-repo,Igorshp/chef,jkerry/chef,brettcave/chef,bahamas10/chef,davestarling/chef,robmul/chef,gsaslis/chef,joyent/chef,criteo-forks/chef,BackSlasher/chef,opsengine/chef,ekometti/chef,onlyhavecans/chef,danielsdeleo/seth,erkolson/chef,paulmooring/chef,sanditiffin/chef,aaron-lane/chef,malisettirammurthy/chef,zshuo/chef,sanditiffin/chef,MichaelPereira/chef,nguyen-tien-mulodo/chef,h4ck3rm1k3/chef,zshuo/chef,jonlives/chef,EasonYi/chef,sideci-sample/sideci-sample-chef,jsierles/chef,docwhat/chef,jaymzh/chef,tbunnyman/chef,jonlives/chef,malisettirammurthy/chef,clintoncwolfe/chef,polamjag/chef,mio-g/chef,3dinfluence/chef,kaznishi/chef,mal/chef,legal90/chef,faspl/chef,grubernaut/chef,renanvicente/chef,karthikrev/chef,ChaosCloud/chef,nalingarg2/chef-1,jblaine/chef,clintoncwolfe/chef,adamleff/chef,Kast0rTr0y/chef,DeWaRs1206/chef,paulmooring/chef,nathwill/chef,tas50/chef-1,ranjib/chef,polamjag/chef,tomdoherty/chef,lamont-granquist/chef,aaron-lane/chef,opsengine/chef,AndyBoucher/Chef-Testing,martinb3/chef,oclaussen/chef,ccope/chef,paulmooring/chef,hfichter/chef,jmhardison/chef,legal90/chef,askl56/chef,chef/chef,permyakovsv/chef,acaiafa/chef,thommay/chef,SUSE-Cloud/chef,oclaussen/chef,faspl/chef,Kast0rTr0y/chef,jhulten/chef,nellshamrell/chef,natewalck/chef,chef/chef,BackSlasher/chef,skmichaelson/chef,baberthal/chef,criteo-forks/chef,MsysTechnologiesllc/chef,jkerry/chef,ktpan/chef-play,coderanger/chef,mal/chef,nathwill/chef,acaiafa/chef,josb/chef,cmluciano/chef,custora/chef,brettcave/chef,jaymzh/chef,smurawski/chef,kamaradclimber/chef,nguyen-tien-mulodo/chef,gene1wood/chef,Ppjet6/chef,nsdavidson/chef,lamont-granquist/chef,brettcave/chef,tas50/chef-1,joemiller/chef,3dinfluence/chef,sideci-sample/sideci-sample-chef,jimmymccrory/chef,OpSitters/chef,someara/chef,jonlives/chef,Tensibai/chef,webframp/chef,nsdavidson/chef,tas50/chef-1,ccope/chef,swalberg/chef,thommay/chef,martinisoft/chef,patcon/chef,evan2645/chef,antonifs/chef,polamjag/chef,DeWaRs1206/chef,cachamber/chef,EasonYi/chef,karthikrev/chef,antonifs/chef,Kast0rTr0y/chef,custora/chef,someara/chef,patcon/chef,criteo-forks/chef,GabKlein/chef-merged,karthikrev/chef,evan2645/chef,oclaussen/chef,bahamas10/chef,DeWaRs1206/chef,patcon/chef,ChaosCloud/chef,zshuo/chef,aaron-lane/chef,thommay/chef,davestarling/chef,jk47/chef,sometimesfood/chef,clintoncwolfe/chef,nalingarg2/chef-1,swalberg/chef,EasonYi/chef,AndyBoucher/Chef-Testing,tbriggs-curse/chef,Igorshp/chef,docwhat/chef,nicklv/chef,jagdeesh109/chef,Ppjet6/chef,mio-g/chef,jagdeesh109/chef,jkerry/chef,OpSitters/chef,custora/chef,nalingarg2/chef-1,aaron-lane/chef,zuazo-forks/chef,joemiller/chef,martinb3/chef,nsdavidson/chef,ccope/chef,hfichter/chef,zuazo-forks/chef,juliandunn/chef,cmluciano/chef,jordane/chef,sysbot/chef,permyakovsv/chef,andrewpsp/chef,ChaosCloud/chef,nathwill/chef,karthikrev/chef,joyent/chef,grubernaut/chef,tbunnyman/chef,bahamas10/chef,legal90/chef,someara/chef,someara/chef,faspl/chef,mwrock/chef,tas50/chef-1,malisettirammurthy/chef,jordane/chef,chef/chef,acaiafa/chef,ducthanh/chef,pblittle/chef,acaiafa/chef,lamont-granquist/chef,raphael/chef,jmhardison/chef,adamleff/chef,higanworks/chef,faspl/chef,joemiller/chef,sometimesfood/chef,patcon/chef,natewalck/chef,grubernaut/chef,ccsplit/chef,SUSE-Cloud/chef,mikefaille/chef,ShadySQL/chef-merged,onlyhavecans/chef,martinb3/chef,ccope/chef,zshuo/chef,tomdoherty/chef,jsierles/chef,jmhardison/chef,higanworks/chef,gene1wood/chef,MichaelPereira/chef,juliandunn/chef,jonlives/chef,b002368/chef-repo,tomdoherty/chef,MichaelPereira/chef,mal/chef,josb/chef,aaron-lane/chef,martinisoft/chef,jblaine/chef,nvwls/chef,malisettirammurthy/chef,cgvarela/chef,jimmymccrory/chef,h4ck3rm1k3/chef,jhulten/chef,webframp/chef,webframp/chef,nathwill/chef,higanworks/chef,cmluciano/chef,zshuo/chef,nguyen-tien-mulodo/chef,3dinfluence/chef,EasonYi/chef,mikefaille/chef,kamaradclimber/chef,swalberg/chef,SUSE-Cloud/chef,jk47/chef,nathwill/chef,zuazo-forks/chef,b002368/chef-repo,coderanger/chef,mattray/chef,sekrett/chef,tbriggs-curse/chef,Igorshp/chef,ktpan/chef-play,youngjl1/chef,strangelittlemonkey/chef,paulmooring/chef,nsdavidson/chef,nellshamrell/chef,pburkholder/chef,jkerry/chef,juliandunn/chef,Ppjet6/chef,adamleff/chef,evan2645/chef,MsysTechnologiesllc/chef,MsysTechnologiesllc/chef,smurawski/chef,pburkholder/chef,3dinfluence/chef,sideci-sample/sideci-sample-chef,Tensibai/chef,aspiers/chef,sekrett/chef,antonifs/chef,pblittle/chef,zshuo/chef,ccsplit/chef,baberthal/chef,nguyen-tien-mulodo/chef,mio-g/chef,nalingarg2/chef-1,nellshamrell/chef,docwhat/chef,GabKlein/chef-merged,sempervictus/chef,oclaussen/chef,ranjib/chef,skmichaelson/chef,3dinfluence/chef,kamaradclimber/chef,DeWaRs1206/chef,sempervictus/chef,docwhat/chef,circleback/chef,robmul/chef,nicklv/chef,askl56/chef,ranjib/chef,mikedodge04/chef,ducthanh/chef,GabKlein/chef-merged,kaznishi/chef,DeWaRs1206/chef,Tensibai/chef,bahamas10/chef,mwrock/chef,mattray/chef,jsierles/chef,chef/chef,MichaelPereira/chef,cachamber/chef,davestarling/chef,lamont-granquist/chef,Tensibai/chef,natewalck/chef,sometimesfood/chef,h4ck3rm1k3/chef,nellshamrell/chef,webframp/chef,aspiers/chef,nalingarg2/chef-1,sysbot/chef,someara/chef,zuazo-forks/chef,AndyBoucher/Chef-Testing,strangelittlemonkey/chef,nvwls/chef,b002368/chef-repo,aaron-lane/chef,andrewpsp/chef,legal90/chef,paulmooring/chef,martinisoft/chef,antonifs/chef,skmichaelson/chef,joemiller/chef,Kast0rTr0y/chef,ckaushik/chef,SUSE-Cloud/chef,opsengine/chef,nguyen-tien-mulodo/chef,nathwill/chef,gsaslis/chef,ktpan/chef-play,baberthal/chef,criteo-forks/chef,tbunnyman/chef,baberthal/chef,nicklv/chef,kisoku/chef,ekometti/chef,sanditiffin/chef,lamont-granquist/chef,cgvarela/chef,ccope/chef,sekrett/chef,DeWaRs1206/chef,ChaosCloud/chef,natewalck/chef,renanvicente/chef,jk47/chef,sekrett/chef,permyakovsv/chef,ccsplit/chef,OpSitters/chef,jhulten/chef,renanvicente/chef,cgvarela/chef,clintoncwolfe/chef,Igorshp/chef,OpSitters/chef,jblaine/chef,nsdavidson/chef,youngjl1/chef,Kast0rTr0y/chef,AndyBoucher/Chef-Testing,onlyhavecans/chef,bahamas10/chef,mwrock/chef,pburkholder/chef,circleback/chef,faspl/chef,martinisoft/chef,nicklv/chef,cachamber/chef,raphael/chef,lamont-granquist/chef,nellshamrell/chef,custora/chef,aspiers/chef,kisoku/chef,sanditiffin/chef,mikefaille/chef,onlyhavecans/chef,jkerry/chef,mattray/chef,mikedodge04/chef,mal/chef,oclaussen/chef,criteo-forks/chef,tbunnyman/chef,swalberg/chef,circleback/chef,docwhat/chef,custora/chef,jagdeesh109/chef,pburkholder/chef,BackSlasher/chef,ccsplit/chef,kaznishi/chef,opsengine/chef,robmul/chef,docwhat/chef,strangelittlemonkey/chef,polamjag/chef,adamleff/chef,clintoncwolfe/chef,askl56/chef,acaiafa/chef,thommay/chef,oclaussen/chef,nalingarg2/chef-1,thommay/chef,erkolson/chef,smurawski/chef,ducthanh/chef,jmhardison/chef,b002368/chef-repo,polamjag/chef,ktpan/chef-play,robmul/chef,3dinfluence/chef,mikefaille/chef,mwrock/chef,ducthanh/chef,kisoku/chef,h4ck3rm1k3/chef,opsengine/chef,cgvarela/chef,BackSlasher/chef,mikefaille/chef,mikedodge04/chef,gsaslis/chef,mattray/chef,Ppjet6/chef,gsaslis/chef,tomdoherty/chef,nvwls/chef,circleback/chef,martinisoft/chef,erkolson/chef,OpSitters/chef,SUSE-Cloud/chef,strangelittlemonkey/chef,jaymzh/chef,ekometti/chef,Kast0rTr0y/chef,jk47/chef,joyent/chef,youngjl1/chef,sekrett/chef,youngjl1/chef,Ppjet6/chef,cgvarela/chef,onlyhavecans/chef,jk47/chef,andrewpsp/chef,mio-g/chef,sometimesfood/chef,skmichaelson/chef,ktpan/chef-play,kisoku/chef,tbunnyman/chef,sanditiffin/chef,mio-g/chef,hfichter/chef,erkolson/chef,youngjl1/chef,jagdeesh109/chef,coderanger/chef,higanworks/chef,faspl/chef,mal/chef,tbriggs-curse/chef,erkolson/chef,clintoncwolfe/chef,youngjl1/chef,cmluciano/chef,malisettirammurthy/chef,jimmymccrory/chef,kaznishi/chef,Igorshp/chef,ChaosCloud/chef,webframp/chef,skmichaelson/chef,askl56/chef,natewalck/chef,ckaushik/chef,legal90/chef,davestarling/chef,sometimesfood/chef,smurawski/chef,jblaine/chef,cgvarela/chef,jsierles/chef,mikedodge04/chef,robmul/chef,GabKlein/chef-merged,andrewpsp/chef,circleback/chef,someara/chef,patcon/chef,askl56/chef,cachamber/chef,pburkholder/chef,askl56/chef,ckaushik/chef,permyakovsv/chef,kaznishi/chef,antonifs/chef,paulmooring/chef,EasonYi/chef,grubernaut/chef,b002368/chef-repo,sempervictus/chef,jimmymccrory/chef,antonifs/chef,jagdeesh109/chef,tomdoherty/chef,kisoku/chef,aspiers/chef,mal/chef,nvwls/chef,AndyBoucher/Chef-Testing,h4ck3rm1k3/chef,ducthanh/chef,acaiafa/chef,gsaslis/chef,sometimesfood/chef,evan2645/chef,zuazo-forks/chef,joyent/chef,juliandunn/chef,kamaradclimber/chef,BackSlasher/chef,sempervictus/chef,grubernaut/chef,criteo-forks/chef,tbunnyman/chef,ccsplit/chef,sanditiffin/chef,josb/chef,onlyhavecans/chef,martinb3/chef,pblittle/chef,mikedodge04/chef,joemiller/chef,grubernaut/chef,jimmymccrory/chef,danielsdeleo/seth,adamleff/chef,josb/chef,brettcave/chef,h4ck3rm1k3/chef,webframp/chef,mattray/chef,bahamas10/chef,kaznishi/chef,pblittle/chef,joyent/chef,mikefaille/chef,OpSitters/chef,jmhardison/chef,jordane/chef,nellshamrell/chef,sempervictus/chef,coderanger/chef,danielsdeleo/seth,ckaushik/chef,aspiers/chef,cmluciano/chef,nsdavidson/chef,evan2645/chef,gene1wood/chef,josb/chef,ShadySQL/chef-merged,renanvicente/chef,ChaosCloud/chef,sysbot/chef