add multi view queries support

This changes implement COUCHDB-523 with support of the multiview query
for the view changes and the replication using a view.

You can pass multiple queries to a view using the following format:

{"queries": [
   { "startkey": "a", "endkey": "c" },

   ....
]}