Evolving query interface.
Now persisting data in JSON format.
Move iodef encoding closer to the client.