Added download, upload, with multipart support. Fixed minor errors.