Add support for ssl

Minor naming suggestion: call this CustomOpts or Opts0 and then the final thing is Opts that gets passed to pgsql:connect later on.