Add little modules framework.
Move redirect to be a module.
Create an optional logging module.