Middleware manager for express web framework