Bug 820582: freezing metadata and metadata.permissions in bootstrap.js file now and no longer need to do this in the loader; freezing should only be done for add-on metadata