Changes to handle command execution for candidate/follower nodes.

Store the serialized format of command in logEntry while processing
command in leader node. In candidate/follower nodes, while committing
the entry, deserialize and invoke the corresponding command handler.
Note that the command handler arg, prezClient will not be valid for
candidate/follower as it is not needed.