MB-9073 Always set type to xmem when creating a replication.

Also ensure that advanced settings container is always folded by
default.

Change-Id: I9cdde5c0144b203bd3b49f33969494261958ed29
Reviewed-on: http://review.couchbase.org/28834
Tested-by: Aliaksey Artamonau <aliaksiej.artamonau@gmail.com>
Reviewed-by: Aliaksey Kandratsenka <alkondratenko@gmail.com>
Merge remote-tracking branch 'origin/2.2.0'

* origin/2.2.0:
  MB-9073 Always set type to xmem when creating a replication.

trivial merge

Change-Id: Icbd619c36a5b605b3f57444e3dc821eb98bd6a88