Bug 1032903 - Erase internal storage if SDcard is default. r=ggp

    * Also fixes bug 1032976 - don't cursor.continue if a null file is
      encountered.
    * Correct app-related permissions in manifest.