Preserve cursor pos when trimming trailing whitespace

This also refactors the trimming autocommand to get rid of the buffer
variable introduced in #15.
Merge pull request #20 from kopischke/fix-whitespace-trim-cursor

Preserve cursor position when trimming trailing whitespace