tempids, nesting moved to api, decomplected tx.clj, conform refactoring