add support for upload-compression
change timeout handling

- enable not to set timeouts (use defaults from HttpURLConnection)
- provide setters for global connect and read timeout