Switch to https
Update payloads.go
Rename payloads.go to types.go
Remove deprecated methods
Change pointer
Always close response, even in the case of errors; use JSON decoders instead of ioutil
Update unit tests