I don't think we want this to run at every startup.  We could instead use a defaults.js file and have the default preferences there. see https://developer.mozilla.org/en-US/docs/Adding_preferences_to_an_extension

As for the mozilla central side of things, I'm not quite sure where we should put that.