Fix https detection, disable secure login by default

Otherwise, lots of wikis, including dev ones, will break

Change-Id: I86ef72107b440651f8fc98a8327f9310c1982855
Merge "Fix https detection, disable secure login by default"