Update supported_locales for packaged apps on approval (bug 867453)

This also refactors the prior commit for hosted apps.