Various improvements.

- Use net/http Request and Response types instead of implementing an
  HTTP client directly.
- Support gzip transfer encoding.
- Add example.