Fixed trailing whitespace in libprocess.
Added support for catching trailing white spaces in the style checker.

Review: https://reviews.apache.org/r/25526