Extracting helpers to new datomic-util ns.
Needs moar threading macro.