main.js: Initialize the settings manager before the extensions system