Encode dictionaries, lists and sets as JSON.

Fixes #74
first stab at implementing ssl verification option
Merge pull request #77 from tijs/verify-option

first stab at implementing ssl verification option