This makes the couchapp to fetch the view using reduce and grouping per proc model. First fully-functional version