Refactor settings again

Moved all environment specific configuration to external setup script