Split irc logs rendering functionality into a separate module.

Fixes a bug when navigating to build.nimrod-code.org/irclogs where URLs
are generated incorrectly.