Fixed bug in ActiveRecordBase:;removeAllByType()
Modify ApplicationBase so config rebuilds every request in debug mode