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:

```
[
    {
        "date": "2013-12-08",
        "key": {
            "value": 42
        }
    }
]
````