Fix ddoc params abuse for std.net.curl.FTP.onProgress.

Refactor callback params as macro to minimize copy-n-paste.
Fix ddoc params abuse in std.net.curl.SMTP.onProgress.