Added mapReduce support.

Usage example:
```
http://host/data.json?map=(function(){emit(%270%27,this.count);})&reduce=(function(key,values){return%20Array.sum(values);})&t=mapReduce

-->

[{
 _id: "0"
 value: 324   //summary of documents count-field
}]
```