Starting templates for commands.

Two templates fro Query/Action types of commands + Base class for them.