Port from mach command dispatcher from servo for generalized rust project