Updated with common implementation for command response processing.

Signed-off-by: Jayanga Dissanayake <jsdjayanga@yahoo.com>