Commonalize the cache config and change default to disable cache

This change is such that cache dependencies can be declared in a common dependency file. Historicals and brokers optionally configure whether or not they want to enable the cache.
If these are both run in different threads in the same JVM will it cause any issues?