Add support for handling getCommand.

Adding support for getCommand. Since this is a read-only command, it
doesn't have to go through cluster replicated state machine and can be
serviced locally.