Refactor SSL support as its own module and export functional mixins.