CBQE-0: Refactor pause and resume implementation

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