Bug 834595: replace stat() calls in gaia

This PR is my work in progress on modifying Gaia for the new alternatives to devicestorage.stat().  I'll push commits here for each app I modify.