introduce commander.dispatch.processor

factor out command processing from the shell and sentry into its own class