clean up router

moved logging into conditional.
started implementing basic userland config for #14