allow to initialize config by pulling it from another node

we also need to create duplicate set of node related keys for the node
we are copying config to in order for calls like search_node to
work correctly

Change-Id: Ie9d3ab6e3fcaf415ea203e0569178e50142f02e3
Reviewed-on: http://review.couchbase.org/41925
Reviewed-by: Aliaksey Kandratsenka <alkondratenko@gmail.com>
Tested-by: Aliaksey Kandratsenka <alkondratenko@gmail.com>
expose ns_server:get_babysitter_cookie

Change-Id: I1f272345e04ff52fee2652945988f40a8be654d9
Reviewed-on: http://review.couchbase.org/42244
Reviewed-by: Aliaksey Kandratsenka <alkondratenko@gmail.com>
Tested-by: Aliaksey Kandratsenka <alkondratenko@gmail.com>
initial implementation of couchdb node with the copy of config

no config replication yet

Change-Id: I934f5cd8e601cf1a830af9a96b060777748f1762
Reviewed-on: http://review.couchbase.org/41926
Reviewed-by: Aliaksey Kandratsenka <alkondratenko@gmail.com>
Tested-by: Aliaksey Kandratsenka <alkondratenko@gmail.com>
config replication from ns_server node to couchdb node

Change-Id: I05973c066c6953d9f76224f5ec1148a431b20f28
Reviewed-on: http://review.couchbase.org/41927
Reviewed-by: Aliaksey Kandratsenka <alkondratenko@gmail.com>
Tested-by: Aliaksey Kandratsenka <alkondratenko@gmail.com>
handle ns_server node rename on ns_couchdb node

Change-Id: I0212a061f9d4522a300c3cd7120679dbe0a9c14b
Reviewed-on: http://review.couchbase.org/41929
Reviewed-by: Aliaksey Kandratsenka <alkondratenko@gmail.com>
Tested-by: Aliaksey Kandratsenka <alkondratenko@gmail.com>
make sure that modules for child nodes are loaded in the same order

... as for ns_server node

Change-Id: Iec5f19c11046506d18063932e8c312a40b17e675
Reviewed-on: http://review.couchbase.org/41931
Reviewed-by: Aliaksey Kandratsenka <alkondratenko@gmail.com>
Tested-by: Aliaksey Kandratsenka <alkondratenko@gmail.com>
use http to access couchdb on handling /couchBase urls

the existing hack with passing mochi request to the couchdb web
server won't work after couchdb will be moved to different node

Change-Id: If176e18f2e33777e4b4f9bda5601bb974be137a0
Reviewed-on: http://review.couchbase.org/41933
Reviewed-by: Aliaksey Kandratsenka <alkondratenko@gmail.com>
Tested-by: Aliaksey Kandratsenka <alkondratenko@gmail.com>
move some functions unrelated to rdoc replication out of...

... xdc_rdoc_replication_srv.erl to the separate module

Change-Id: I08a0420b872ab16335e672ae07e95aaee7914698
Reviewed-on: http://review.couchbase.org/41936
Reviewed-by: Aliaksey Kandratsenka <alkondratenko@gmail.com>
Tested-by: Aliaksey Kandratsenka <alkondratenko@gmail.com>
remove all methods unrelated to documents replication

... from capi_ddoc_replication_srv

Change-Id: I046fbc05d4c6bdd535ece784fabb59cc63510937
Reviewed-on: http://review.couchbase.org/41937
Reviewed-by: Aliaksey Kandratsenka <alkondratenko@gmail.com>
Tested-by: Aliaksey Kandratsenka <alkondratenko@gmail.com>
ns_couchdb_storage - module that contains storage related functions

... that will be executed on ns_couchdb node

Change-Id: I97f884809ea9550015d0f6874d4b59239a726c69
Reviewed-on: http://review.couchbase.org/41938
Reviewed-by: Aliaksey Kandratsenka <alkondratenko@gmail.com>
Tested-by: Aliaksey Kandratsenka <alkondratenko@gmail.com>
service that will be maintaining compaction tasks on ns_server

.. node after couch_task_status will be moved to ns_couchdb node

[alk@tut.by: changed compression to compaction]

Change-Id: Ibfa95a77c19a3245706fd1161b6276f25117034d
Reviewed-on: http://review.couchbase.org/42088
Reviewed-by: Aliaksey Kandratsenka <alkondratenko@gmail.com>
Tested-by: Aliaksey Kandratsenka <alkondratenko@gmail.com>