Fixed up logging
Evolving querying
Moved Iodef stuff all the way back to the client.