JCBC-531: Add Diagnostics and dump them on startup.

Change-Id: Ib8a3719ac0380cf64486bbea8fb208bb9606f770
Reviewed-on: http://review.couchbase.org/40913
Reviewed-by: Matt Ingenthron <matt@couchbase.com>
Reviewed-by: Michael Nitschinger <michael.nitschinger@couchbase.com>
Tested-by: Michael Nitschinger <michael.nitschinger@couchbase.com>