Remove trailing spaces, add newlines at eof

Much cleaner and consistent. Most clients can be setup to strip trailing spaces on save.
This helps avoiding accidentally changing lines by just adding or removing spaces, which would then show that commit as the last change to the line in git blame.
Also makes merging less problematic often times.

Merging would be much appreciated. :)