Fix file upload

File upload was broken. The qt signal "readyWrite" which was used to recognise that the file can be written to the server is not a signal of the QNetworkRequest. Hence the according slot was never reached and nothing was uploaded.
I added another version of the put function which has additional an QIODevice parameter. This device is passed to the sendRequest function and used for the actual upload.