Refactor settings files. Add Sentry.