Using SSL by default and validating server certificate
Merge pull request #47 from andrerod/https

#307 & #623: Using https by default and validating certificate