Fixed https only bug, created a setting to toggle it.