reporter-upload: move file upload function to lib/

This patch moves send_file() out of reporter-upload
into lib/curl.c and renames it to upload_file().
It returns new URL or NULL on error.

Signed-off-by: Denys Vlasenko <dvlasenk@redhat.com>