[#996] Set to HTTPS all js/image/userpic/css prefix variables

Fixes #996.