Function StripTrailingWhitespaces

Trailing whitespaces are automatically stripped from py/js/css/html
files on save.
Actually delete a buffer when closing a tab