Bug 1039497 modified AppInstall.js

Replaced the AppInstall.js from https://github.com/mozilla/mortar-appinstall/tree/master/src