Added automatic whitespace cleanup.

Note there is currently a bug in some Emacs the results in leading blank lines
in a buffer not being correctly removed via whitespace-cleanup.