Add gelf codec.

This is basically just copy-and-paste from the gelf output plugin.
While the output plugin always uses udp through gelf-rb, this codec
can be used to queue messages for graylog2 with the rabbitmq output
plugin.