Initial move of logger code from the gatekeeper to the router.

This needs to be redone, but this is a starting point to simply move the
old functionality to the new project as-is.