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

...ut port change
We should also provide these function as bootstrap extension's entry point, otherwise it will have warning like:
`WARN	Add-on browser-helper@gaiamobile.org is missing bootstrap method install`

Thus add install and uninstall here, act like shutdown function above.