Proposal for Query system

This is a proposal for a query language and implementation plan for it.  @cheddar and @jh-bate -- your comments would be appreciated.
Are notifications fire-and-forget, or will they attempt to retry.

That is, if we have ```PostURL``` and the receiving end is down when we attempt the POST, will we retry or just give up?