Add CommandRegistry::capture and perform capture-phase dispatch