Compacted log events on separated lines should be treated as individual ...

Compacted log events on separated lines should be treated as individual json objects.

 The comma at the end of each line breaks the reading of each line if strict json formatting is required.
 The counter argument is that this breaks the json formatting of the file.
  But the file is always invalid as it always has a trailing comma.
  Otherwise this change only applies to compact && newline configurations.

This is an addition to commit a674ae80 "Add a new parameter "newline" to LogStashJSONLayout that formats compact events on separate lines"


This pull requests includes the removal of trailing whitespace on other lines.
(to view the pull request without the whitespace changes see https://github.com/majikthys/log4j2-logstash-jsonevent-layout/pull/4?w=1 )