Add simple version of causal store.

Probably won't be kept long-term.