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

...ut port change
Do you really need that? If yes, can you add a comment?