Bug 1021481 - Handle app:// protocol for DEBUG=1, rewrite channel, witho...

...ut port change