Added the id of the rule that was matched to a match object.
Added upload of matched rules back to the REST API.