Make the uploading working.

Make it possible to cancel an upload. For that upload the files first
and then do the json request.
Fix attachment parsing.
Fix uploading on the server side.