3.0 constants

Refs #5452, #5451 

This makes Cache packages usable as standalone without requiring constant CACHE. Since it depends on Core package I added DS constant there.

Another package which requires similar treatment is Log. I don't think system temp dir is a good default for logs so better to just remove use of LOGS constant and have user always specify path for FileLog.
My mistake, the error is always thrown when running tests not just for cache. The main composer.json has `src/Core/functions.php` in autoload, so it seems that file gets loaded before `tests/bootstrap.php`.