minor renaming;
addressed namespace warning;
moved HTTP GET and supporting logic into its own function;
moved the function literals to the top of the block, in a vain attempt to improve readability;
the code is much cleaner now that I remembered that I can use (comp ...);
some minor cosmetic tweaks;
it now successfully downloads the segments;
found a file output method that works for binary data;
added the wait, as a primitive form of backing-off;