Revert "Add incomplete implementation of HTTP/HTTPS switching."

This reverts commit d431fbfca543b4270c2f8c1ca8d36957477929d2.
Add HTTP/HTTPS switcher hook.