awful.rules: add does_match and matching_rules functions

Signed-off-by: Daniel Hahler <git@thequod.de>