Show progress during upload

Added two options to curl:

--progress-bar: This will show a progress bar for the upload process.
tee: Redirects stdin to stdout. This sllows to show the json returned by the request.

Tee was neccessary because for some reason curl does not show the progress bar unless you redirect the output somewhere explicitly (with either "-o", ">" or "|")