sslversion via function parameter

Moved the sslversion config to a parameter rather than being hardcoded. Default remains 3. Fixes #55