MB-8295: Add category (prod/dev) to logging

As all logging messages needed to be changed, I
also reformatted the code to be <80 characters
long.

Change-Id: I4a73243b2afe08e9202ccdd70b4175899dcee051
Reviewed-on: http://review.couchbase.org/26516
Reviewed-by: Filipe David Borba Manana <fdmanana@gmail.com>
Tested-by: Filipe David Borba Manana <fdmanana@gmail.com>