Add support for https thumbs

Added support to get thumbs via https where necessary.  This makes it
so the resulting page doesn't include any non-secure parts