CCBC-305: Create logging hooks

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