wri/forma-api — pull request #37 by robinkraft (2013-06-25 02:31:03+00:00)
Title: flatten json response and include all parent geographies

We have a flat json response! Fixes #30, obviates #21.

`http://wip.forma-api.appspot.com/api/counts/idn/1?aggregate=2&range=2013-02-01`

```json
{
"data":[
{
"series":[
[
"2013-02-02",
3
],
[
"2013-02-18",
3
],
[
"2013-03-06",
5
],
[
"2013-03-22",
4
],
[
"2013-04-07",
5
]
],
"name1":"Aceh",
"id2":11,
"id1":1,
"name2":"Aceh Utara",
"country":"Indonesia",
"iso":"IDN"
},
{
"series":[
[
"2013-02-02",
3
],
[
"2013-02-18",
1
],
[
"2013-03-06",
1
],
[
"2013-03-22",
4
],
[
"2013-04-07",
3
]
],
"name1":"Aceh",
"id2":3,
"id1":1,
"name2":"Aceh Besar",
"country":"Indonesia",
"iso":"IDN"
}
]
}
```