Move durability functions out of internal.h

Change-Id: I1be03081c654eead1f3d2427a4c06c80b870e024
Reviewed-on: http://review.couchbase.org/36143
Reviewed-by: Brett Lawson <brett19@gmail.com>
Tested-by: Mark Nunberg <mnunberg@haskalah.org>