Bug 930104 - Remove localId=0 hack for the system app on firefox and correctly set permission for any app loaded in Firefox

https://bugzilla.mozilla.org/show_bug.cgi?id=930104