Generic Connect-like middleware manager