logstash 1.4.0

Upgrades logstash formula to 1.4.0.
Due to radical distribution changes upstream, we need to inreplace a few lines
to get it to run from the Cellar.