Basic SSL support

API was moved to SSL only now so doing HTTP calls end up in redirects that the library does not know how to handle. I have moved it to do the HTTPS calls instead now. 

TODO: Properly check the certificate of the API site.