Added queries and helper functions for first hit and latest api endpoints
defmain support for api queries, incl. tests
WIP
Use multiple arity to handle optional thresh arguments
Merge pull request #381 from reddmetrics/feature/api

Added queries and helper functions for first hit and latest api endpoints