Improving the add-ons generator to deal with apps (bug 1080145)