Add a Filter#toDict method

Only helpful for the client, but keep in sync.
Use separate pool for queries that can write

Alex says I won't have to care about those stalls soon, but nonetheless, this
seems a good plan. Closes #23.