make metadata storage pluggable

ABCD?