Corrected TLS support

Introduced more configuration options instead of constants and corrected
bug related to using RSA cipher where AES was needed
Passing config to request handler