Register the given handler for the given command identifier.
a given command id
a command handler
Throw if a handler for the given command identifier is already registered.
Optional
Register the given handler for the given command identifier.