codec#on_event api change

This PR patches only `lib/logstash/codecs/base.rb`, the rest of the changes have been disseminated to individual plugin repos.

Closes #1523 and replaces #1573