Slightly clean up the OpenSSL binding

 - reduce the amount of state needed on the API instance
 - fixed import ordering
Inline this function, it didn't do much
Merge pull request #68 from alex/cleanup

Slightly clean up the OpenSSL binding