THRIFT-2568: Implemented possibility to use own certificate handler

Added the possibility to set a user specific certificate validation routine. This allows to accept unsigned or wrong certificates for debug reasons.