move command-executor into core to allow for central management