Added check on bad certificate

- if connecting to a Stash instance with a self-signed certificate, the plugin would
  fail with a "peer not authenticated" message.  This adds a more detailed and
  informative message for this error case
Merge pull request #6 from pzelnip/addCatchForBadCert

Added check on bad certificate