Query cache expiration

The query cache can now be wiped through the REPL. In addition, the cache itself has a cleaning function that returns which queries to cleanup, which is defined at the time of cache creation. That cleanup routine happens whenever the worker has no work to do.