Cleaned up command framework and added test functionality.

Change-Id: I4e296ece6e8757ee6b96fb7da0b4c16c40e12525
Signed-off-by: Scott Mann <smann@noironetworks.com>