Make fewer assumptions about snapshots.txt format.
Make fewer assumptions about snapshots.txt format.

- Read the file into a nested dictionary instead of variables.
- Only apply special cases where they are really needed.
- Apply a transform to the triple argument to get the platform name to
  determine whether there is a snapshot available for it.
- Apply a similar (but slightly different) transform to get the snapshot's
  file name.  It would be better if the file name matched the platform name
  in snapshots.txt, but it's too late for that now (older versions of this
  script will certainly expect the existing name format).

Turbo87/cargo,blaenk/cargo,beni55/cargo,winger/cargo,rust-lang/cargo,Gankro/cargo,worr/cargo,blaenk/cargo,cmr/cargo,JacobHenner/cargo,iliekturtles/cargo,vojtechkral/cargo,worr/cargo,cmr/cargo,chris-morgan/cargo,cesarb/cargo,youprofit/cargo,pcwalton/cargo,huonw/cargo,youprofit/cargo,frewsxcv/cargo,Kimundi/cargo,ucarion/cargo,Frederick888/cargo,mceier/cargo,fhahn/cargo,pcwalton/cargo,ucarion/cargo,huonw/cargo,nipunn1313/cargo,iliekturtles/cargo,johshoff/cargo,frewsxcv/cargo,mceier/cargo,apjanke/cargo,Gankro/cargo,felixbuenemann/cargo,nipunn1313/cargo,Gankro/cargo,JacobHenner/cargo,apjanke/cargo,beni55/cargo,youprofit/cargo,ThinTim/cargo,sbeckeriv/cargo,aturon/cargo,Dineshs91/cargo,vyskocilm/cargo,rust-lang/cargo,rustyhorde/cargo,JacobHenner/cargo,vojtechkral/cargo,vi/cargo,mark-buer/cargo,apjanke/cargo,tshepang/cargo,mark-buer/cargo,gchp/cargo,mceier/cargo,tsurai/cargo,fhahn/cargo,eerden/cargo,chris-morgan/cargo,eminence/cargo,gchp/cargo,liigo/cargo,mark-buer/cargo,rustyhorde/cargo,liigo/cargo,eminence/cargo,vi/cargo,mceier/cargo,fhahn/cargo,eerden/cargo,beni55/cargo,vyskocilm/cargo,blaenk/cargo,shaleh/cargo,tshepang/cargo,akiss77/cargo,gchp/cargo,Kimundi/cargo,alex/cargo,Turbo87/cargo,chris-morgan/cargo,ThinTim/cargo,achanda/cargo,winger/cargo,shaleh/cargo,pcwalton/cargo,huonw/cargo,eerden/cargo,alex/cargo,vi/cargo,aturon/cargo,Ticki/cargo,apjanke/cargo,durka/cargo,beni55/cargo,achanda/cargo,tsurai/cargo,durka/cargo,sbeckeriv/cargo,cesarb/cargo,durka/cargo,Frederick888/cargo,alex/cargo,Ticki/cargo,iliekturtles/cargo,ThinTim/cargo,ThinTim/cargo,AndiDog/cargo,ArtemGr/cargo,mark-buer/cargo,nipunn1313/cargo,cmr/cargo,cmr/cargo,brson/cargo,Dineshs91/cargo,ucarion/cargo,eminence/cargo,sbeckeriv/cargo,tafia/cargo,alex/cargo,johshoff/cargo,Ticki/cargo,ucarion/cargo,mark-buer/cargo,Kimundi/cargo,ThinTim/cargo,frewsxcv/cargo,ArtemGr/cargo,brson/cargo,Dineshs91/cargo,blaenk/cargo,Dineshs91/cargo,huonw/cargo,JacobHenner/cargo,Frederick888/cargo,tafia/cargo,rust-lang/cargo,eerden/cargo,cmr/cargo,Turbo87/cargo,sbeckeriv/cargo,youprofit/cargo,achanda/cargo,rustyhorde/cargo,iliekturtles/cargo,worr/cargo,mneumann/cargo,tsurai/cargo,mneumann/cargo,liigo/cargo,ArtemGr/cargo,vyskocilm/cargo,johshoff/cargo,blaenk/cargo,vyskocilm/cargo,tshepang/cargo,liigo/cargo,vi/cargo,Turbo87/cargo,nipunn1313/cargo,felixbuenemann/cargo,gchp/cargo,vojtechkral/cargo,Frederick888/cargo,fhahn/cargo,aturon/cargo,AndiDog/cargo,chris-morgan/cargo,tshepang/cargo,felixbuenemann/cargo,shaleh/cargo,rust-lang/cargo,akiss77/cargo,winger/cargo,worr/cargo,tsurai/cargo,ucarion/cargo,cesarb/cargo,shaleh/cargo,cesarb/cargo,frewsxcv/cargo,tsurai/cargo,youprofit/cargo,aturon/cargo,eminence/cargo,rustyhorde/cargo,JacobHenner/cargo,beni55/cargo,cesarb/cargo,Gankro/cargo,durka/cargo,pcwalton/cargo,achanda/cargo,shaleh/cargo,eerden/cargo,pcwalton/cargo,AndiDog/cargo,alex/cargo,winger/cargo,winger/cargo,akiss77/cargo,tafia/cargo,tafia/cargo,huonw/cargo,johshoff/cargo,chris-morgan/cargo,Turbo87/cargo,akiss77/cargo,vojtechkral/cargo,mneumann/cargo,fhahn/cargo,akiss77/cargo,mneumann/cargo,vyskocilm/cargo,ArtemGr/cargo,Ticki/cargo,liigo/cargo,Frederick888/cargo,AndiDog/cargo,brson/cargo,felixbuenemann/cargo,aturon/cargo,Ticki/cargo,Kimundi/cargo,Kimundi/cargo,Gankro/cargo,brson/cargo,felixbuenemann/cargo,apjanke/cargo,frewsxcv/cargo,iliekturtles/cargo,mneumann/cargo,mceier/cargo,AndiDog/cargo,tafia/cargo,vi/cargo,worr/cargo,brson/cargo,ArtemGr/cargo,gchp/cargo,Dineshs91/cargo,johshoff/cargo