handle multiline input

splits incoming messages by new line and processes each sequentially.

Fixes https://github.com/elasticsearch/logstash/issues/1483