Return query stats (runtime and such) in API.
Improvements to queries page: (#6)

1. Search (client side).
2. Stats about queries.
3. Pagination.