Redis output with generalized batch/flush

This requires that https://github.com/jordansissel/ruby-stud/pull/2 get merged into ruby-stud, and included in logstash.

Replaces https://github.com/logstash/logstash/pull/329, since the batch behavior is the same - just moved from the redis output to into stud.