"CBQE-0: added new function in xdcrnewbasetests.py and some re-factoring" - Additional review from Parag.

This reverts commit 48a8eed1e5e90cd7dd16a4a8412b59bbab705aa3.

Change-Id: I4dfa5d78a120132fdc44685fd7f4971993b43a54
Reviewed-on: http://review.couchbase.org/44652
Reviewed-by: Sangharsh Agarwal <sangharsh.agarwal@globallogic.com>
Tested-by: Sangharsh Agarwal <sangharsh.agarwal@globallogic.com>