slightly better error handling
Move code to /src
Raise ValueError for a bad argument
Unit tests for SSL_CTX