Minor improvements to the transport library

I've fixed som minor stuff in the transport library:

- Hostname is preferred when using http(s).request
- Use default port if none is given in DSN
- Accept all 2xx response codes from the api (e.g. previously it would be considered a failure if 202 was returned)
- Show the status code if an error occurs