Simple middleware-style router