SSL support

Hi,
This adds support for logging over an SSL connection using the new SSL cosockets in ngx_lua 0.9.11.
Includes custom SNI hostname and toggling SSL host verification.
I think "local session, err = ..." is better here