Delete trailing whitespace

The following command is used to accomplish this:
    git ls-files | xargs sed -i '' -e's/[[:space:]]*$//'
the sed here is BSD version, but it is supposed to work well with
GNU version.
Merge pull request #13 from xuchunyang/patch-2

Delete trailing whitespace