refactored datomic part of friendui into its own lib