Make log path configurable
Simplify route handling