Bug 821288 - Strange behavior when installing multiple hosted apps from ...

...the same origin

This patch prevents installing an app with the same origin than another app.
This displays an error "install failed" to the user and outputs a more useful
log to the console.