add lookup-refs support

provenance.clj now uses lookup-refs
helper query.clj now has support for it
data_functions shows use of find-by-lookup