expose SSL session information in the https checks.

expose SSL_SESSION from the context and wrap with lua.
Fix data type for master bits.