CCBC-258 explicitly check that the server initialized correctly

We must check return values from buffer allocator

Change-Id: Ibc4c6718c461b8c943c410270d2d6b03155c6e42
Reviewed-on: http://review.couchbase.org/28685
Reviewed-by: Trond Norbye <trond.norbye@gmail.com>
Tested-by: Trond Norbye <trond.norbye@gmail.com>
Remove compile warning

The format specifier for 64 bit integers caused warning

Change-Id: Ia9dda08d0251cedbdfab3ab286ea430f35afe843
Reviewed-on: http://review.couchbase.org/28692
Tested-by: Trond Norbye <trond.norbye@gmail.com>
Reviewed-by: Sergey Avseyev <sergey.avseyev@gmail.com>