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.
Why not say

```
time in "2014-07-14/2014-07-28"
```

Or

```
time > "2014-07-14" AND time < "2014-07-28"
```