Wake up the connection notifier iff it is in sleep state.

Change-Id: Ibd2579aeaa456fb14904b27ca00e453c56d33786
Reviewed-on: http://review.couchbase.org/39251
Reviewed-by: Michael Wiederhold <mike@couchbase.com>
Tested-by: Chiyoung Seo <chiyoung@couchbase.com>
Rename TAP-specific variables and functions to generic ones.

Change-Id: I02f4b3fa317e109c2ab6105a77a2379c3aa6ce83
Reviewed-on: http://review.couchbase.org/39252
Reviewed-by: Michael Wiederhold <mike@couchbase.com>
Tested-by: Chiyoung Seo <chiyoung@couchbase.com>
Move ConnMap::notifyVBConnections to TapConnMap.

ConnMap::notifyVBConnections function is only used by TapConnMap.

Change-Id: If0eec43dc07253fa9c757910bb3ff110512220b3
Reviewed-on: http://review.couchbase.org/39253
Reviewed-by: Michael Wiederhold <mike@couchbase.com>
Tested-by: Chiyoung Seo <chiyoung@couchbase.com>
Reduce the lock contention in notifying UPR connections of an event

This change uses partitioned spinlocks to reduce the lock
contention in notifying UPR connections of mutation events.

Change-Id: I0e2898f8e10efcbf76ae200f7d9a0f42ebe4badd
Reviewed-on: http://review.couchbase.org/39254
Reviewed-by: Michael Wiederhold <mike@couchbase.com>
Tested-by: Chiyoung Seo <chiyoung@couchbase.com>