use libcurl for upload

- windows usually has no curl binary
- no need to write a file
- allow to configure endpoint via COVERALLS_ENDPOINT
add dump argument

- writes json report to stdout instead of uploading it