Bug 1058601 - Update app_management.js to work with 2.0

I did a straight copy/paste from https://github.com/mozilla-b2g/gaia/blob/v2.0/tests/atoms/gaia_apps.js; tested out OK.