Changed to server to be https, also added fallback from http and scripts for SSL certificates.