More callback error checking.
Added session ticket callback handling.
Split set client and server session caching callbacks.