Reformat the code with astyle

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