Add SSL/TLS and headers injection support

Can auto-detect SSL based on wss:// schema (port will then default
to 443), or can be forced. Headers should be provided as a Hash of
key-value pairs which will be injected at the end of the request.