Middleware manager for express.js