Move logger code into its own file.

This cleans up btcd.go a bit and consolidates the logging related
functions.  It also paves the way for upcoming message summaries.