MB-12099 Handle unicode:characters_to_binary errors.

Change-Id: I1f327d54569bb9ab7a4db6d0ff1be2dacde779da
Reviewed-on: http://review.couchbase.org/41096
Tested-by: Aliaksey Artamonau <aliaksiej.artamonau@gmail.com>
Reviewed-by: Aliaksey Kandratsenka <alkondratenko@gmail.com>
MB-12092: Display spatial view results

In 3.0 the spatial views return the `key` instead of the `bbox` as they
are now multidimensional and may contain more than two dimensions.

Change-Id: Ia93997cb962d835385de4c930126657ffecd8239
Reviewed-on: http://review.couchbase.org/41024
Reviewed-by: Aliaksey Kandratsenka <alkondratenko@gmail.com>
Tested-by: Aliaksey Kandratsenka <alkondratenko@gmail.com>
MB-12095: Change default values for spatial views

Spatial views don't need a bounding box anymore. If none is defined the
full data set is returned. Additionally spatial views support skip and
limit to page through the results.

Change-Id: I061074d8b3c077fae7de90002ab23f0f5fee197a
Reviewed-on: http://review.couchbase.org/41081
Reviewed-by: Aliaksey Kandratsenka <alkondratenko@gmail.com>
Tested-by: Aliaksey Kandratsenka <alkondratenko@gmail.com>
[mn-hooks.js] prettified defineRoutes method name

Change-Id: Iaf13861cbde33258fba6d8b5e0b4e731f08f521b
Reviewed-on: http://review.couchbase.org/41090
Tested-by: Aliaksey Kandratsenka <alkondratenko@gmail.com>
Reviewed-by: Pavel Blagodov <stochmail@gmail.com>
Tested-by: Pavel Blagodov <stochmail@gmail.com>
Remove unused function.

Change-Id: I6489296867eac5bf91f2b2b835b3b2c32836e0f9
Reviewed-on: http://review.couchbase.org/41153
Tested-by: Aliaksey Artamonau <aliaksiej.artamonau@gmail.com>
Reviewed-by: Aliaksey Kandratsenka <alkondratenko@gmail.com>
Add zookeeper client.

Change-Id: I348153673d4b0328b97ad0db4940b2995bd0a78b
mark

Change-Id: I6d2dedff5c0e8db62a6a7ac9792e53de3b3a36f4
change handlers response format

Change-Id: I364de156e39d9c4a7c1df97618a0de83eed5adb1
Wrap connection into a state record.

Change-Id: Ie105df9000b9984ddc5fd9d863e84890381b8a09
watches

Change-Id: Iec183c0c5fe649a7444099dd59f9979861d3312e
Notify watcher only after new watch is set.

So if it needs to get the value, there's no race condition.

Change-Id: Ie3b6054e1e023dcce2f1cece86d3f59cf14a5242
version() -> server_version()

Change-Id: Iec0174c62f96a611a7cfe5383e932ede176b51a0
get rid of cfg prefixes

Change-Id: I922b98ddd831785ce830d3d7a9c93591e11f9dc0
fix unwatch

Change-Id: Ib2eb090194610e8558fc0530ea76b83cf3eb37a5
update pending_watch correctly

Change-Id: I4f8ac27196c2689159febd43851b8d887c280aef
include reason in watch_lost message

Change-Id: Ifb1bfdc044e3c80cf8cde753abb516d129c32c52
correctly return watch ref from config_ezk:handle_watch

Change-Id: I73150d12b83048ea392a6396f3aa86736109cf9b
start config

Change-Id: I0161c61845a22e1a72c31abbad5caa0cc33f5ebb
add config pubsub

Change-Id: Idb277ee14cddd82f305b13938deafab99bc13825
node_uuid

Change-Id: If6cd47da91d777ad56ef3f40be9d074653d70899