sslsockets and code refactorization. not tested!
Merge pull request #15 from dokaptur/ssl

sslsockets and code refactorization. not tested!