Clean up the SSL abstraction (and module usage).  Solves most of #1