Added proxy support for cURL http://user:pass@host/file downloads, code cleanup (TUI-24)