metadata directory support

This separates metadata directory support from Caskfile logging as in #3066,
and will conflict with #3066.

The purpose is to provide persistent per-distribution locations to for GPG data.