Support for https

Hi, I've added support for https. Sparks seems cool and we needed this.