RCBC-159, RCBC-152 Use :environment constructor argument

Change-Id: Ia25ce26bf8f81157aabddef04ea86b3838ae09a3
Reviewed-on: http://review.couchbase.org/32318
Tested-by: Sergey Avseyev <sergey.avseyev@gmail.com>
Reviewed-by: Aliaksey Kandratsenka <alkondratenko@gmail.com>