Introduce cache.memory_ratio configuration for HPCache

New set-and-forget configuration that specifies cache size as a ratio of the
old generation max size. Memory division across internal components of the cache
is handled by fixed ratios.

If any of the old config (now referred to as "advanced config") is set, it will
override the memory_ratio configuration.
This still allows you to set the total cache size to larger sizes than the JVM can handle. If you set the size to close enough to the total heap size you have a very real risk of OOME.