Support JRuby (w/ TLS)

A WIP.