tools: Allow origin protocols other than http

Contains a backwards compatibility hack that adds http://
protocol if no protocol is found

Bug: T84983
Change-Id: If096d46e8d2db891e878cd0ebea2555d5a36605b