JCBC-515: Simplify environment and collapse properties.

Change-Id: Icc6a1d31e373cbc24a0a6b346bbaa6fc77a60d2f
Reviewed-on: http://review.couchbase.org/40694
Reviewed-by: Michael Nitschinger <michael.nitschinger@couchbase.com>
Tested-by: Michael Nitschinger <michael.nitschinger@couchbase.com>