Added interfaces for commands, queries, processors and handlers