Fix expire_mail script to use app settings
Move test config loading to BaseTest class

so it will not try to open test[.local].ini if you're not testing it.