coding style fixes for gerrit compatibility

gerrit does not handle lines more than 80 characters well
Also coding style dictates fixed line sizes which are
mostly followed but left out in a few places..
- remove trailing whitespaces from all files
- limit lines to 80 chars
- try to ensure comments fit into one line so that they can
be traced back from an error log
Change-Id: Id8f1c34c3c7cb698a1b50f5f225b4516667f5e42
Reviewed-on: http://review.couchbase.org/31639
Tested-by: Sundararaman Sridharan <sundar.sridharan@gmail.com>
Reviewed-by: Chiyoung Seo <chiyoung@couchbase.com>