Fix: Application config can be overwritten by packages.
Changed how the class is configured.
Prevent sending cookies if SAPI is 'cli'
Update