add /query route

This changeset adds a `/query` GET route which accepts the following parameters:

* keys
* value 
* from
* to
* client_id

Results are returned in the format:

```
[
    {
        "key": {
        "value": 23
        },
        "date": "2013-12-08"
    }
]
````