Custom headers, plus SSL support

The SSL support tests are a WIP, and will create a PR when they're finished. :smile: