add function that waits for local name

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

Change-Id: I0cebdb6f36aa7e631f56fa00d2e13ca05fc209a8
Reviewed-on: http://review.couchbase.org/42816
Tested-by: Artem Stemkovski <artem@couchbase.com>
Reviewed-by: Aliaksey Kandratsenka <alkondratenko@gmail.com>
helper for turning the process into gen_server

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