Set up logging earlier in the boot process

This fixes an issue where the ActionPack loggers do not write to STDOUT.

The ActionPack classes are set up by Railties initializers, including
setting the logger to Rails.logger. We need to set up the STDOUT logging
before the Railties initializers run, otherwise the loggers will be set
to the default Rails logger.