use logstash JSON format for logging in production

Logging in development and test environments is unchanged. Use ENV variables `LOGSTASH_TYPE` and `LOGSTASH_TYPE` to configure logstash logging, default is logging to `log/production.log` on `localhost`.

`production.log` is now in JSON format, so renaming the existing `production.log` before using this code is recommended.