Add save hook to remove trailing whitespace for common files