extend ToDatomic for Datom to support querying over datoms

support the use of a collection of datoms as a database/datasource
Merge pull request #100 from pellucidanalytics/topic/query-datoms

extend ToDatomic for Datom to support querying over datoms