Revert "Update menu builder to use `env.link_to` helper."

This reverts commit 60a9fb0c063e2ad7db745208110bd2792c1fce28.
Drop `env.link_to` helper.

This reverts commit 62f2684a73f50fa2364b771b2c6777b46e970b0e.
Add `env.url_to` helper - to construct full URLs.
Correct sessions workflow with SSL.
Drop protocols switching hack from the navigator.
Add same-origin checks for redirects at navigator.