MB-8872 add basic auth to all issued _view_merge and _spatial_merge requests

with user = ns_server and password = erlang:get_cookie()

Change-Id: I9456f3f0d2f9dee199a78748e7e11ed0e111ffee
Reviewed-on: http://review.couchbase.org/43375
Tested-by: Artem Stemkovski <artem@couchbase.com>
Reviewed-by: Aliaksey Kandratsenka <alkondratenko@gmail.com>
MB-8872 check basic auth for _view_merge requests

for backwards compat with pre 3.0.2 clusters allow anonimous access
if not all of the nodes have 3.0.2 or higher version

Change-Id: Ib14e5fd4a9d18de92893dd89a936f8f03f2727f8
Reviewed-on: http://review.couchbase.org/43376
Tested-by: Artem Stemkovski <artem@couchbase.com>
Reviewed-by: Aliaksey Kandratsenka <alkondratenko@gmail.com>