add metadata client

Change-Id: I6225d104548d26301a7aaa3648b15cd427c97b14
Reviewed-on: http://review.couchbase.org/24109
Tested-by: buildbot <build@couchbase.com>
Reviewed-by: Pavel Paulau <pavel.paulau@gmail.com>