Bug 1021481 - Handle app:// protocol for DEBUG=1

...ut port change
After app protocol handler redirect its traffic to http, browser-helper extension will get request in http scheme and predefined GAIA_PORT, so we have to handle the manifestURL conversion here in order to retrieve correct manifestURL.