Merge Logstach V1 logic into the main Logstash formatter, add a parameter to the constructor to specify version

Defaults to version '0'.