CBQE-0: define hostname while initializing

Change-Id: I6a4c21376c709adf34e3acc8ae1d6d75858db855
Reviewed-on: http://review.couchbase.org/27884
Reviewed-by: Iryna Mironava <irynamironava@yandex.ru>
Tested-by: Iryna Mironava <irynamironava@yandex.ru>