Minor work on SSL

- Added IsSecure property to allow the user to know whether we're using
  SSL
- Minor cleanup
Basis SSL test

- #291