added ssl support

- added ssl support with the ability to also connect without ssl
  certificate verification