Added --debug option for connection debugging.
Added optional download progress bar.