Issue #2272201 by kim.pepper: Move drupal_match_path in path.inc to a service.