Update .gitignore
Reduce dependencies on Settings
Make CASCConfig non static