Reworked proxy support
Added option for auto-promotion into HTTPS