Enforce no trailing whitespace.

This pull request adds tests to the build that ensure we
don't check-in code that has trailing whitespace.

I fixed all trailing whitespace issues previously and some
additional trailing whitespace was later introduced, so I
think it's good to add some automated tests.

We can add additional style convention checks in the future.
I will work on this.