query: update query code to look more like a grammar

Signed-off-by: Anthony Liguori <aliguori@us.ibm.com>
notify: be a little more tolerant of broken pull requests

Also fix header encoding.  We were encoding iso-8859-1 but declaring utf8.

Signed-off-by: Anthony Liguori <aliguori@us.ibm.com>
scan/fetch: implement timestamp tracking

There's no point in fetching all mboxes if the json file hasn't changed.  Add
a timestamp to the file so that the client can detect if the data has changed.

This is a compatible change because the client will gracefully handle the
absence of the timestamp.

Signed-off-by: Anthony Liguori <aliguori@us.ibm.com>
mbox: add sha1 hash of mbox to json to allow skipping

Remove timestamp.  It's not necessary anymore.

Signed-off-by: Anthony Liguori <aliguori@us.ibm.com>
fetch: fix silly bug in building old hash database

Signed-off-by: Anthony Liguori <aliguori@us.ibm.com>