Supply view type to couchstore

Couchstore deals with mapreduce as well as spatial views. In order to
know which view it currently processes, we need pass on the view type.

0 stands for mapreduce view
1 stands for spatial view

Change-Id: I7b19789d600d9497cf5314209fa37f12227ca469
Reviewed-on: http://review.couchbase.org/39639
Reviewed-by: Volker Mische <volker.mische@gmail.com>
Tested-by: Volker Mische <volker.mische@gmail.com>