Added tls support
Added threaded openssl config option
Remove some unnecesary scripts and configs