Add durability context manager to doc index

Change-Id: Ibc92028456ca3e22530e2280655e05ca57e82c30
Reviewed-on: http://review.couchbase.org/33490
Reviewed-by: Volker Mische <volker.mische@gmail.com>
Tested-by: Mark Nunberg <mnunberg@haskalah.org>