move some ssl functions that are now macros and add 2 getters
move some ssl functions that are now macros and add 2 getters

SSL_get_session and SSL_SESSION_get_id will help us when SSL becomes
opaque soon (woe be unto pyopenssl)

Ayrx/cryptography,Ayrx/cryptography,Ayrx/cryptography,Ayrx/cryptography