Validate Rules

Add rule validation to ensure they conform to the correct types. Right
now this includes the match field being a string and the command field
also being a string.