Fix nil logger in inits

Move the logger initialization out of init in util.go and into the
variable initializer.  This ensures that it will be run before any of
the other init functions.