Provide function to handle downloads inside temporary directories, avoiding issues with partially completed downloads. Partial work towards chapmanb/bcbio-nextgen#127
Use new shared wget functionality to retrieve code and data files, avoiding potential issues with partial downloads and cleanly handling all wget peculiarities. Fixes chapmanb/bcbio-nextgen#127