make metadata storage pluggable

Publish type set to `metadata` ?