Updated command manager

The command manager is now nearly ready to use.
Still lacking some comments in code, and interface description for
driver implementation.