Support Lookup Refs in Datomisca

See:
http://blog.datomic.com/2014/02/datomic-lookup-refs.html
http://docs.datomic.com/identity.html#lookup-refs