HTTPS for rest API

Let's at least try to use SSL where it's supported. #212