Error logs and initial statistics.

Change-Id: Ia89a1e1a3baa14908e90652ecca1ff03bccc674f
Reviewed-on: http://review.couchbase.org/38315
Reviewed-by: John Liang <johliang00@gmail.com>
Reviewed-by: Pratap Chakravarthy <prataprc@couchbase.com>
Tested-by: Pratap Chakravarthy <prataprc@couchbase.com>