Whitespace cleanup - fixed all the tabs.
Added support for curl, abstracted out all calls to wget into set_download_bin()