Add logstasher config for JSON logging

This change involves adding back a rack middleware that was stripped out by `rails-api`.