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
initial implementation of couchdb node with the copy of config

no config replication yet

Change-Id: I934f5cd8e601cf1a830af9a96b060777748f1762
cookie

Change-Id: I3971c200eddb221219e06e1a4ad65ee756edeb62
config replication from ns_server node to couchdb node

Change-Id: I05973c066c6953d9f76224f5ec1148a431b20f28
make single_bucket_sup a parameter in ns_bucket_worker_sup

so the same supervisors can be reused for couchdb node

Change-Id: I8a753e5ec8cee5cfab6c581ba710e7d80d718b02
handle ns_server node rename on ns_couchdb node

Change-Id: I0212a061f9d4522a300c3cd7120679dbe0a9c14b
do not use couch_config from ns_config_default

since there will be no couch_config on ns_server node, use env variable
with default value instead

Change-Id: If4bc21d0f4bc2fef55be83e36aa7e70587a0cff8
make sure that modules for child nodes are loaded in the same order

... as for ns_server node

Change-Id: Iec5f19c11046506d18063932e8c312a40b17e675
use sockets from pool for all compaction related calls to memcached

to be able to run compaction daemon on a node without ns_memcached
server

Change-Id: I193fd60957eaa973860452436bc63e2202c4082b
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
remove unnecessary opening/closing of master db from xdc_vbucket_rep

Change-Id: I4da4e696c98121297db3cbb3cc3e4f18b9a6ce5e
remove some dead code

Change-Id: I0b546b5a5cc87dc988a439914b58029848a4710c
move some functions unrelated to rdoc replication out of...

... xdc_rdoc_replication_srv.erl to the separate module

Change-Id: I08a0420b872ab16335e672ae07e95aaee7914698
remove all methods unrelated to documents replication

... from capi_ddoc_replication_srv

Change-Id: I046fbc05d4c6bdd535ece784fabb59cc63510937
ns_couchdb_storage - module that contains storage related functions

... that will be executed on ns_couchdb node

Change-Id: I97f884809ea9550015d0f6874d4b59239a726c69
service that will be maintaining compression tasks on ns_server

.. node after couch_task_status will be moved to ns_couchdb node

Change-Id: Ibfa95a77c19a3245706fd1161b6276f25117034d
rpc api of ns_couchdb node

contains almost everything (with the exception of compaction_api)
that ns_server node calls on ns_couchdb node

in this commit it still calls ns_server node, because underlining
services are not moved to ns_couchdb node yet

Change-Id: Ica9dfc5cc88561bf939786bfe1fc9085d2f83edd
move all couchdb related services to ns_couchdb node

Change-Id: I1daf53f3e7e754b3b8c3179f6c351c2b9e78f0a1
do not slow down ns_heart during the ns_couchdb node start

Change-Id: I804b200986c162720e54035644d5129c6c2c47ee