awful.rules: add does_match and matching_rules functions (FS#1224)