Feature/base output changes

this patch adds features 1) & 2) from base filter  https://github.com/logstash/logstash/pull/432 to base output