Changing payas/remove-extra-whitespace to not delete other characters.

This stops quotes and brackets at the end of function calls being
accidentally removed.

This function will also remove the trailing comma from the last
parameter if it exists.

This now works with:

foo('quoted',   )
foo("quoted",   )
foo($var,   )
foo($var, bar(), )