Revert "Bug 1028069 - Remove Scheme and Port in build system"

This reverts commit 3df12b3987e4468723956aa2a8fe0ece9f5cf692.
Revert "Bug 1021481 - Handle app protocol for DEBUG=1 mode, with port change"

This reverts commit b3cc85ade91b0eba479fe60f6d017628d5541791.