CLI tools should use detailed error codes

Change-Id: I3e0d4a8d2c818abc7068053d4f60970466ee1c00
Reviewed-on: http://review.couchbase.org/43136
Tested-by: Mark Nunberg <mnunberg@haskalah.org>
Reviewed-by: Sergey Avseyev <sergey.avseyev@gmail.com>